Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/1.9.x/client-android/java/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ storage.createFile(
"<FILE_ID>", // fileId
InputFile.fromPath("file.png"), // file
List.of(Permission.read(Role.any())), // permissions (optional)
"", // folder (optional)
new CoroutineCallback<>((result, error) -> {
if (error != null) {
error.printStackTrace();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ val result = storage.createFile(
fileId = "<FILE_ID>",
file = InputFile.fromPath("file.png"),
permissions = listOf(Permission.read(Role.any())), // (optional)
folder = "", // (optional)
)
```
3 changes: 2 additions & 1 deletion examples/1.9.x/client-apple/examples/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ let file = try await storage.createFile(
bucketId: "<BUCKET_ID>",
fileId: "<FILE_ID>",
file: InputFile.fromPath("file.png"),
permissions: [Permission.read(Role.any())] // optional
permissions: [Permission.read(Role.any())], // optional
folder: "" // optional
)

```
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ File result = await storage.createFile(
fileId: '<FILE_ID>',
file: InputFile(path: './path-to-files/image.jpg', filename: 'image.jpg'),
permissions: [Permission.read(Role.any())], // optional
folder: '', // optional
);
```
7 changes: 5 additions & 2 deletions examples/1.9.x/client-graphql/examples/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Content-Length: *Length of your entity body in bytes*
--cec8e8123c05ba25
Content-Disposition: form-data; name="operations"

{ "query": "mutation { storageCreateFile(bucketId: $bucketId, fileId: $fileId, file: $file, permissions: $permissions) { id }" }, "variables": { "bucketId": "<BUCKET_ID>", "fileId": "<FILE_ID>", "file": null, "permissions": ["read("any")"] } }
{ "query": "mutation { storageCreateFile(bucketId: $bucketId, fileId: $fileId, file: $file, permissions: $permissions, folder: $folder) { id }" }, "variables": { "bucketId": "<BUCKET_ID>", "fileId": "<FILE_ID>", "file": null, "permissions": ["read("any")"], "folder": "" } }

--cec8e8123c05ba25
Content-Disposition: form-data; name="map"
Expand All @@ -28,14 +28,17 @@ mutation {
bucketId: "<BUCKET_ID>",
fileId: "<FILE_ID>",
file: null,
permissions: ["read("any")"]
permissions: ["read("any")"],
folder: ""
) {
_id
bucketId
_createdAt
_updatedAt
_permissions
name
folder
key
signature
mimeType
sizeOriginal
Expand Down
2 changes: 2 additions & 0 deletions examples/1.9.x/client-graphql/examples/storage/get-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ query {
_updatedAt
_permissions
name
folder
key
signature
mimeType
sizeOriginal
Expand Down
2 changes: 2 additions & 0 deletions examples/1.9.x/client-graphql/examples/storage/list-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ query {
_updatedAt
_permissions
name
folder
key
signature
mimeType
sizeOriginal
Expand Down
4 changes: 4 additions & 0 deletions examples/1.9.x/client-graphql/examples/storage/update-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ mutation {
_updatedAt
_permissions
name
folder
key
signature
mimeType
sizeOriginal
Expand All @@ -35,6 +37,8 @@ mutation {
_updatedAt
_permissions
name
folder
key
signature
mimeType
sizeOriginal
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const result = await storage.createFile({
bucketId: '<BUCKET_ID>',
fileId: '<FILE_ID>',
file: InputFile.fromPath('/path/to/file', 'filename'),
permissions: ["read("any")"] // optional
permissions: ["read("any")"], // optional
folder: '' // optional
});

console.log(result);
Expand Down
8 changes: 7 additions & 1 deletion examples/1.9.x/client-rest/examples/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ Content-Disposition: form-data; name="permissions[]"

["read(\"any\")"]

--cec8e8123c05ba25
Content-Disposition: form-data; name="folder"

""

--cec8e8123c05ba25--

{
"fileId": "<FILE_ID>",
"file": cf 94 84 24 8d c4 91 10 0f dc 54 26 6c 8e 4b bc e8 ee 55 94 29 e7 94 89 19 26 28 01 26 29 3f 16...,
"permissions": ["read(\"any\")"]
"permissions": ["read(\"any\")"],
"folder": ""
}
```
3 changes: 2 additions & 1 deletion examples/1.9.x/client-web/examples/storage/create-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ const result = await storage.createFile({
bucketId: '<BUCKET_ID>',
fileId: '<FILE_ID>',
file: document.getElementById('uploader').files[0],
permissions: [Permission.read(Role.any())] // optional
permissions: [Permission.read(Role.any())], // optional
folder: '' // optional
});

console.log(result);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
```bash
appwrite activities list-events
appwrite activities list-events \
--limit 25
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite apps create-installation-token \
--app-id <APP_ID> \
--installation-id <INSTALLATION_ID>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite apps delete-installation \
--app-id <APP_ID> \
--installation-id <INSTALLATION_ID>
```
5 changes: 5 additions & 0 deletions examples/1.9.x/console-cli/examples/apps/get-installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite apps get-installation \
--app-id <APP_ID> \
--installation-id <INSTALLATION_ID>
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
```bash
appwrite apps list-installations \
--app-id <APP_ID> \
--limit 25
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```bash
appwrite oauth-2 authorize-post
appwrite oauth2 authorize-post
```
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/authorize.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```bash
appwrite oauth-2 authorize
appwrite oauth2 authorize
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```bash
appwrite oauth-2 create-device-authorization
appwrite oauth2 create-device-authorization
```
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/create-grant.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite oauth-2 create-grant \
appwrite oauth2 create-grant \
--user-_code <USER_CODE>
```
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/create-par.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite oauth-2 create-par \
appwrite oauth2 create-par \
--client-_id <CLIENT_ID> \
--redirect-_uri https://example.com \
--response-_type code
Expand Down
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/create-token.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite oauth-2 create-token \
appwrite oauth2 create-token \
--grant-_type <GRANT_TYPE>
```
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/get-grant.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite oauth-2 get-grant \
appwrite oauth2 get-grant \
--grant-_id <GRANT_ID>
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```bash
appwrite oauth-2 list-organizations
appwrite oauth2 list-organizations
```
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```bash
appwrite oauth-2 list-projects
appwrite oauth2 list-projects
```
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/logout-post.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```bash
appwrite oauth-2 logout-post
appwrite oauth2 logout-post
```
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/logout.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
```bash
appwrite oauth-2 logout
appwrite oauth2 logout
```
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/reject.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite oauth-2 reject \
appwrite oauth2 reject \
--grant-_id <GRANT_ID>
```
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/oauth2/revoke.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite oauth-2 revoke \
appwrite oauth2 revoke \
--token <TOKEN>
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite project update-session-duration-policy \
--duration 5
--duration 60
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite project update-user-limit-policy \
--total 1
--total 0
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-big-int-column \
appwrite tablesdb create-big-int-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-boolean-column \
appwrite tablesdb create-boolean-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-datetime-column \
appwrite tablesdb create-datetime-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-email-column \
appwrite tablesdb create-email-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-enum-column \
appwrite tablesdb create-enum-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite tables-db create-failover \
appwrite tablesdb create-failover \
--database-id <DATABASE_ID>
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-float-column \
appwrite tablesdb create-float-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-index \
appwrite tablesdb create-index \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-integer-column \
appwrite tablesdb create-integer-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-ip-column \
appwrite tablesdb create-ip-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-line-column \
appwrite tablesdb create-line-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-longtext-column \
appwrite tablesdb create-longtext-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-mediumtext-column \
appwrite tablesdb create-mediumtext-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-migration \
appwrite tablesdb create-migration \
--database-id <DATABASE_ID> \
--specification s-1vcpu-1gb
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
```bash
appwrite tables-db create-operations \
appwrite tablesdb create-operations \
--transaction-id <TRANSACTION_ID>
```
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-point-column \
appwrite tablesdb create-point-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-polygon-column \
appwrite tablesdb create-polygon-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-relationship-column \
appwrite tablesdb create-relationship-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--related-table-id <RELATED_TABLE_ID> \
Expand Down
2 changes: 1 addition & 1 deletion examples/1.9.x/console-cli/examples/tablesdb/create-row.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-row \
appwrite tablesdb create-row \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--row-id <ROW_ID> \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-rows \
appwrite tablesdb create-rows \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--rows one two three
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
appwrite tables-db create-string-column \
appwrite tablesdb create-string-column \
--database-id <DATABASE_ID> \
--table-id <TABLE_ID> \
--key '' \
Expand Down
Loading