mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: update specs and examples
This commit is contained in:
@@ -3381,13 +3381,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -3513,13 +3513,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -4059,13 +4059,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -4485,26 +4485,6 @@
|
||||
}
|
||||
],
|
||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
},
|
||||
{
|
||||
"name": "createDocuments",
|
||||
"parameters": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
"code": 201,
|
||||
"model": "#\/components\/schemas\/documentList"
|
||||
}
|
||||
],
|
||||
"description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
@@ -6281,6 +6261,17 @@
|
||||
"x-example": "<FILE_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6399,13 +6390,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
},
|
||||
@@ -6498,6 +6489,17 @@
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6565,6 +6567,17 @@
|
||||
"x-example": "<FILE_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -7600,457 +7613,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"\/tokens\/buckets\/{bucketId}\/files\/{fileId}": {
|
||||
"get": {
|
||||
"summary": "List tokens",
|
||||
"operationId": "tokensList",
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "List all the tokens created for a specific file or bucket. You can use the query params to filter your results.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Resource Tokens List",
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"$ref": "#\/components\/schemas\/resourceTokenList"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "list",
|
||||
"group": "files",
|
||||
"weight": 439,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/list.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterList all the tokens created for a specific file or bucket. You can use the query params to filter your results.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "bucketId",
|
||||
"description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https:\/\/appwrite.io\/docs\/server\/storage#createBucket).",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<BUCKET_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "fileId",
|
||||
"description": "File unique ID.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "queries",
|
||||
"description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"default": []
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create file token",
|
||||
"operationId": "tokensCreateFileToken",
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Create a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "ResourceToken",
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"$ref": "#\/components\/schemas\/resourceToken"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "createFileToken",
|
||||
"group": "files",
|
||||
"weight": 436,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/create-file-token.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "bucketId",
|
||||
"description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https:\/\/appwrite.io\/docs\/server\/storage#createBucket).",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<BUCKET_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "fileId",
|
||||
"description": "File unique ID.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expire": {
|
||||
"type": "string",
|
||||
"description": "Token expiry date",
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"\/tokens\/{tokenId}": {
|
||||
"get": {
|
||||
"summary": "Get token",
|
||||
"operationId": "tokensGet",
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Get a token by its unique ID.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ResourceToken",
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"$ref": "#\/components\/schemas\/resourceToken"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "get",
|
||||
"group": "tokens",
|
||||
"weight": 437,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/get.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a token by its unique ID.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "Token ID.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Update token",
|
||||
"operationId": "tokensUpdate",
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ResourceToken",
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"$ref": "#\/components\/schemas\/resourceToken"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "update",
|
||||
"group": "tokens",
|
||||
"weight": 440,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/update.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "Token unique ID.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expire": {
|
||||
"type": "string",
|
||||
"description": "File token expiry date",
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission string. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete token",
|
||||
"operationId": "tokensDelete",
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Delete a token by its unique ID.",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "No content"
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "delete",
|
||||
"group": "tokens",
|
||||
"weight": 441,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/delete.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterDelete a token by its unique ID.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "Token ID.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/tokens\/{tokenId}\/jwt": {
|
||||
"get": {
|
||||
"summary": "Get token as JWT",
|
||||
"operationId": "tokensGetJWT",
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Get a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "JWT",
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"$ref": "#\/components\/schemas\/jwt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "getJWT",
|
||||
"group": "tokens",
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/get-j-w-t.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "File token ID.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -8282,30 +7844,6 @@
|
||||
"files"
|
||||
]
|
||||
},
|
||||
"resourceTokenList": {
|
||||
"description": "Resource Tokens List",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"total": {
|
||||
"type": "integer",
|
||||
"description": "Total number of tokens documents that matched your query.",
|
||||
"x-example": 5,
|
||||
"format": "int32"
|
||||
},
|
||||
"tokens": {
|
||||
"type": "array",
|
||||
"description": "List of tokens.",
|
||||
"items": {
|
||||
"$ref": "#\/components\/schemas\/resourceToken"
|
||||
},
|
||||
"x-example": ""
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"total",
|
||||
"tokens"
|
||||
]
|
||||
},
|
||||
"teamList": {
|
||||
"description": "Teams List",
|
||||
"type": "object",
|
||||
@@ -9502,61 +9040,6 @@
|
||||
"chunksUploaded"
|
||||
]
|
||||
},
|
||||
"resourceToken": {
|
||||
"description": "ResourceToken",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$id": {
|
||||
"type": "string",
|
||||
"description": "Token ID.",
|
||||
"x-example": "bb8ea5c16897e"
|
||||
},
|
||||
"$createdAt": {
|
||||
"type": "string",
|
||||
"description": "Token creation date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"$permissions": {
|
||||
"type": "array",
|
||||
"description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-example": [
|
||||
"read(\"any\")"
|
||||
]
|
||||
},
|
||||
"resourceId": {
|
||||
"type": "string",
|
||||
"description": "Resource ID.",
|
||||
"x-example": "5e5ea5c168bb8:5e5ea5c168bb8"
|
||||
},
|
||||
"resourceType": {
|
||||
"type": "string",
|
||||
"description": "Resource type.",
|
||||
"x-example": "files"
|
||||
},
|
||||
"expire": {
|
||||
"type": "string",
|
||||
"description": "Token expiration date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"accessedAt": {
|
||||
"type": "string",
|
||||
"description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"$id",
|
||||
"$createdAt",
|
||||
"$permissions",
|
||||
"resourceId",
|
||||
"resourceType",
|
||||
"expire",
|
||||
"accessedAt"
|
||||
]
|
||||
},
|
||||
"team": {
|
||||
"description": "Team",
|
||||
"type": "object",
|
||||
|
||||
@@ -3386,13 +3386,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -3518,13 +3518,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -4064,13 +4064,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -8044,26 +8044,6 @@
|
||||
}
|
||||
],
|
||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
},
|
||||
{
|
||||
"name": "createDocuments",
|
||||
"parameters": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
"code": 201,
|
||||
"model": "#\/components\/schemas\/documentList"
|
||||
}
|
||||
],
|
||||
"description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
@@ -8967,6 +8947,14 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"lengths": {
|
||||
"type": "array",
|
||||
"description": "Length of index. Maximum of 100",
|
||||
"x-example": null,
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -25729,6 +25717,7 @@
|
||||
"remix",
|
||||
"lynx",
|
||||
"flutter",
|
||||
"react-native",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
@@ -26372,6 +26361,7 @@
|
||||
"remix",
|
||||
"lynx",
|
||||
"flutter",
|
||||
"react-native",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
@@ -29014,6 +29004,17 @@
|
||||
"x-example": "<FILE_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -29132,13 +29133,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
},
|
||||
@@ -29231,6 +29232,17 @@
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -29298,6 +29310,17 @@
|
||||
"x-example": "<FILE_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -30581,7 +30604,7 @@
|
||||
"x-appwrite": {
|
||||
"method": "list",
|
||||
"group": "files",
|
||||
"weight": 439,
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
@@ -30592,8 +30615,7 @@
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -30604,8 +30626,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -30647,7 +30668,7 @@
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Create a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "ResourceToken",
|
||||
@@ -30668,14 +30689,13 @@
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/create-file-token.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -30686,8 +30706,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -30723,14 +30742,6 @@
|
||||
"description": "Token expiry date",
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30773,8 +30784,7 @@
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -30785,8 +30795,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -30808,7 +30817,7 @@
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ResourceToken",
|
||||
@@ -30824,19 +30833,18 @@
|
||||
"x-appwrite": {
|
||||
"method": "update",
|
||||
"group": "tokens",
|
||||
"weight": 440,
|
||||
"weight": 439,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/update.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -30847,8 +30855,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -30874,14 +30881,6 @@
|
||||
"description": "File token expiry date",
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission string. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -30904,7 +30903,7 @@
|
||||
"x-appwrite": {
|
||||
"method": "delete",
|
||||
"group": "tokens",
|
||||
"weight": 441,
|
||||
"weight": 440,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
@@ -30915,8 +30914,7 @@
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -30927,8 +30925,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -30945,70 +30942,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/tokens\/{tokenId}\/jwt": {
|
||||
"get": {
|
||||
"summary": "Get token as JWT",
|
||||
"operationId": "tokensGetJWT",
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Get a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "JWT",
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"$ref": "#\/components\/schemas\/jwt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "getJWT",
|
||||
"group": "tokens",
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/get-j-w-t.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "File token ID.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/users": {
|
||||
"get": {
|
||||
"summary": "List users",
|
||||
@@ -37220,6 +37153,15 @@
|
||||
},
|
||||
"x-example": []
|
||||
},
|
||||
"lengths": {
|
||||
"type": "array",
|
||||
"description": "Index attributes length.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"x-example": []
|
||||
},
|
||||
"orders": {
|
||||
"type": "array",
|
||||
"description": "Index orders.",
|
||||
@@ -37246,6 +37188,7 @@
|
||||
"status",
|
||||
"error",
|
||||
"attributes",
|
||||
"lengths",
|
||||
"$createdAt",
|
||||
"$updatedAt"
|
||||
]
|
||||
@@ -38336,16 +38279,6 @@
|
||||
"description": "Token creation date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"$permissions": {
|
||||
"type": "array",
|
||||
"description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-example": [
|
||||
"read(\"any\")"
|
||||
]
|
||||
},
|
||||
"resourceId": {
|
||||
"type": "string",
|
||||
"description": "Resource ID.",
|
||||
@@ -38361,6 +38294,11 @@
|
||||
"description": "Token expiration date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "JWT encoded string.",
|
||||
"x-example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
|
||||
},
|
||||
"accessedAt": {
|
||||
"type": "string",
|
||||
"description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.",
|
||||
@@ -38370,10 +38308,10 @@
|
||||
"required": [
|
||||
"$id",
|
||||
"$createdAt",
|
||||
"$permissions",
|
||||
"resourceId",
|
||||
"resourceType",
|
||||
"expire",
|
||||
"secret",
|
||||
"accessedAt"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -3068,13 +3068,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -3202,13 +3202,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -3752,13 +3752,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
@@ -7525,26 +7525,6 @@
|
||||
}
|
||||
],
|
||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
},
|
||||
{
|
||||
"name": "createDocuments",
|
||||
"parameters": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
"code": 201,
|
||||
"model": "#\/components\/schemas\/documentList"
|
||||
}
|
||||
],
|
||||
"description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
@@ -8368,6 +8348,14 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"lengths": {
|
||||
"type": "array",
|
||||
"description": "Length of index. Maximum of 100",
|
||||
"x-example": null,
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -17281,6 +17269,7 @@
|
||||
"remix",
|
||||
"lynx",
|
||||
"flutter",
|
||||
"react-native",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
@@ -17696,6 +17685,7 @@
|
||||
"remix",
|
||||
"lynx",
|
||||
"flutter",
|
||||
"react-native",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
@@ -20292,6 +20282,17 @@
|
||||
"x-example": "<FILE_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -20412,13 +20413,13 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100
|
||||
"x-example": -1,
|
||||
"default": -1
|
||||
},
|
||||
"in": "query"
|
||||
},
|
||||
@@ -20511,6 +20512,17 @@
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -20580,6 +20592,17 @@
|
||||
"x-example": "<FILE_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": ""
|
||||
},
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -21662,7 +21685,7 @@
|
||||
"x-appwrite": {
|
||||
"method": "list",
|
||||
"group": "files",
|
||||
"weight": 439,
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
@@ -21673,22 +21696,19 @@
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -21730,7 +21750,7 @@
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Create a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "ResourceToken",
|
||||
@@ -21751,28 +21771,25 @@
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/create-file-token.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -21808,14 +21825,6 @@
|
||||
"description": "Token expiry date",
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21858,22 +21867,19 @@
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -21895,7 +21901,7 @@
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ResourceToken",
|
||||
@@ -21911,33 +21917,30 @@
|
||||
"x-appwrite": {
|
||||
"method": "update",
|
||||
"group": "tokens",
|
||||
"weight": 440,
|
||||
"weight": 439,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/update.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -21963,14 +21966,6 @@
|
||||
"description": "File token expiry date",
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission string. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21993,7 +21988,7 @@
|
||||
"x-appwrite": {
|
||||
"method": "delete",
|
||||
"group": "tokens",
|
||||
"weight": 441,
|
||||
"weight": 440,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
@@ -22004,22 +21999,19 @@
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -22036,72 +22028,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/tokens\/{tokenId}\/jwt": {
|
||||
"get": {
|
||||
"summary": "Get token as JWT",
|
||||
"operationId": "tokensGetJWT",
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Get a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "JWT",
|
||||
"content": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"$ref": "#\/components\/schemas\/jwt"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "getJWT",
|
||||
"group": "tokens",
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/get-j-w-t.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "File token ID.",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>"
|
||||
},
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/users": {
|
||||
"get": {
|
||||
"summary": "List users",
|
||||
@@ -27193,6 +27119,15 @@
|
||||
},
|
||||
"x-example": []
|
||||
},
|
||||
"lengths": {
|
||||
"type": "array",
|
||||
"description": "Index attributes length.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"x-example": []
|
||||
},
|
||||
"orders": {
|
||||
"type": "array",
|
||||
"description": "Index orders.",
|
||||
@@ -27219,6 +27154,7 @@
|
||||
"status",
|
||||
"error",
|
||||
"attributes",
|
||||
"lengths",
|
||||
"$createdAt",
|
||||
"$updatedAt"
|
||||
]
|
||||
@@ -28309,16 +28245,6 @@
|
||||
"description": "Token creation date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"$permissions": {
|
||||
"type": "array",
|
||||
"description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-example": [
|
||||
"read(\"any\")"
|
||||
]
|
||||
},
|
||||
"resourceId": {
|
||||
"type": "string",
|
||||
"description": "Resource ID.",
|
||||
@@ -28334,6 +28260,11 @@
|
||||
"description": "Token expiration date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "JWT encoded string.",
|
||||
"x-example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
|
||||
},
|
||||
"accessedAt": {
|
||||
"type": "string",
|
||||
"description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.",
|
||||
@@ -28343,10 +28274,10 @@
|
||||
"required": [
|
||||
"$id",
|
||||
"$createdAt",
|
||||
"$permissions",
|
||||
"resourceId",
|
||||
"resourceType",
|
||||
"expire",
|
||||
"secret",
|
||||
"accessedAt"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -3530,12 +3530,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -3661,12 +3661,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -4211,12 +4211,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -4631,26 +4631,6 @@
|
||||
}
|
||||
],
|
||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
},
|
||||
{
|
||||
"name": "createDocuments",
|
||||
"parameters": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
"code": 201,
|
||||
"model": "#\/definitions\/documentList"
|
||||
}
|
||||
],
|
||||
"description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
@@ -6439,6 +6419,15 @@
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6554,12 +6543,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -6637,6 +6626,15 @@
|
||||
"x-enum-keys": [],
|
||||
"default": "",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6707,6 +6705,15 @@
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -7732,451 +7739,6 @@
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/tokens\/buckets\/{bucketId}\/files\/{fileId}": {
|
||||
"get": {
|
||||
"summary": "List tokens",
|
||||
"operationId": "tokensList",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
"application\/json"
|
||||
],
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "List all the tokens created for a specific file or bucket. You can use the query params to filter your results.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "Resource Tokens List",
|
||||
"schema": {
|
||||
"$ref": "#\/definitions\/resourceTokenList"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "list",
|
||||
"group": "files",
|
||||
"weight": 439,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/list.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterList all the tokens created for a specific file or bucket. You can use the query params to filter your results.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "bucketId",
|
||||
"description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https:\/\/appwrite.io\/docs\/server\/storage#createBucket).",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<BUCKET_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "fileId",
|
||||
"description": "File unique ID.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "queries",
|
||||
"description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: expire",
|
||||
"required": false,
|
||||
"type": "array",
|
||||
"collectionFormat": "multi",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"default": [],
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"summary": "Create file token",
|
||||
"operationId": "tokensCreateFileToken",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
],
|
||||
"produces": [
|
||||
"application\/json"
|
||||
],
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Create a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "ResourceToken",
|
||||
"schema": {
|
||||
"$ref": "#\/definitions\/resourceToken"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "createFileToken",
|
||||
"group": "files",
|
||||
"weight": 436,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/create-file-token.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "bucketId",
|
||||
"description": "Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https:\/\/appwrite.io\/docs\/server\/storage#createBucket).",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<BUCKET_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "fileId",
|
||||
"description": "File unique ID.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expire": {
|
||||
"type": "string",
|
||||
"description": "Token expiry date",
|
||||
"default": null,
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"default": [],
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/tokens\/{tokenId}": {
|
||||
"get": {
|
||||
"summary": "Get token",
|
||||
"operationId": "tokensGet",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
"application\/json"
|
||||
],
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Get a token by its unique ID.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ResourceToken",
|
||||
"schema": {
|
||||
"$ref": "#\/definitions\/resourceToken"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "get",
|
||||
"group": "tokens",
|
||||
"weight": 437,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/get.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a token by its unique ID.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "Token ID.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>",
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
},
|
||||
"patch": {
|
||||
"summary": "Update token",
|
||||
"operationId": "tokensUpdate",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
],
|
||||
"produces": [
|
||||
"application\/json"
|
||||
],
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ResourceToken",
|
||||
"schema": {
|
||||
"$ref": "#\/definitions\/resourceToken"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "update",
|
||||
"group": "tokens",
|
||||
"weight": 440,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/update.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "Token unique ID.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "payload",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"expire": {
|
||||
"type": "string",
|
||||
"description": "File token expiry date",
|
||||
"default": null,
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission string. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"default": null,
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"delete": {
|
||||
"summary": "Delete token",
|
||||
"operationId": "tokensDelete",
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
],
|
||||
"produces": [],
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Delete a token by its unique ID.",
|
||||
"responses": {
|
||||
"204": {
|
||||
"description": "No content"
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "delete",
|
||||
"group": "tokens",
|
||||
"weight": 441,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/delete.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterDelete a token by its unique ID.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "Token ID.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>",
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/tokens\/{tokenId}\/jwt": {
|
||||
"get": {
|
||||
"summary": "Get token as JWT",
|
||||
"operationId": "tokensGetJWT",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
"application\/json"
|
||||
],
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Get a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "JWT",
|
||||
"schema": {
|
||||
"$ref": "#\/definitions\/jwt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "getJWT",
|
||||
"group": "tokens",
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/get-j-w-t.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "File token ID.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>",
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
@@ -8380,31 +7942,6 @@
|
||||
"files"
|
||||
]
|
||||
},
|
||||
"resourceTokenList": {
|
||||
"description": "Resource Tokens List",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"total": {
|
||||
"type": "integer",
|
||||
"description": "Total number of tokens documents that matched your query.",
|
||||
"x-example": 5,
|
||||
"format": "int32"
|
||||
},
|
||||
"tokens": {
|
||||
"type": "array",
|
||||
"description": "List of tokens.",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"$ref": "#\/definitions\/resourceToken"
|
||||
},
|
||||
"x-example": ""
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"total",
|
||||
"tokens"
|
||||
]
|
||||
},
|
||||
"teamList": {
|
||||
"description": "Teams List",
|
||||
"type": "object",
|
||||
@@ -9612,61 +9149,6 @@
|
||||
"chunksUploaded"
|
||||
]
|
||||
},
|
||||
"resourceToken": {
|
||||
"description": "ResourceToken",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"$id": {
|
||||
"type": "string",
|
||||
"description": "Token ID.",
|
||||
"x-example": "bb8ea5c16897e"
|
||||
},
|
||||
"$createdAt": {
|
||||
"type": "string",
|
||||
"description": "Token creation date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"$permissions": {
|
||||
"type": "array",
|
||||
"description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-example": [
|
||||
"read(\"any\")"
|
||||
]
|
||||
},
|
||||
"resourceId": {
|
||||
"type": "string",
|
||||
"description": "Resource ID.",
|
||||
"x-example": "5e5ea5c168bb8:5e5ea5c168bb8"
|
||||
},
|
||||
"resourceType": {
|
||||
"type": "string",
|
||||
"description": "Resource type.",
|
||||
"x-example": "files"
|
||||
},
|
||||
"expire": {
|
||||
"type": "string",
|
||||
"description": "Token expiration date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"accessedAt": {
|
||||
"type": "string",
|
||||
"description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"$id",
|
||||
"$createdAt",
|
||||
"$permissions",
|
||||
"resourceId",
|
||||
"resourceType",
|
||||
"expire",
|
||||
"accessedAt"
|
||||
]
|
||||
},
|
||||
"team": {
|
||||
"description": "Team",
|
||||
"type": "object",
|
||||
|
||||
@@ -3551,12 +3551,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -3682,12 +3682,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -4232,12 +4232,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -8179,26 +8179,6 @@
|
||||
}
|
||||
],
|
||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
},
|
||||
{
|
||||
"name": "createDocuments",
|
||||
"parameters": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
"code": 201,
|
||||
"model": "#\/definitions\/documentList"
|
||||
}
|
||||
],
|
||||
"description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
@@ -9068,6 +9048,15 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"lengths": {
|
||||
"type": "array",
|
||||
"description": "Length of index. Maximum of 100",
|
||||
"default": [],
|
||||
"x-example": null,
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -25998,6 +25987,7 @@
|
||||
"remix",
|
||||
"lynx",
|
||||
"flutter",
|
||||
"react-native",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
@@ -26644,6 +26634,7 @@
|
||||
"remix",
|
||||
"lynx",
|
||||
"flutter",
|
||||
"react-native",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
@@ -29283,6 +29274,15 @@
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -29398,12 +29398,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -29481,6 +29481,15 @@
|
||||
"x-enum-keys": [],
|
||||
"default": "",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -29551,6 +29560,15 @@
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -30815,7 +30833,7 @@
|
||||
"x-appwrite": {
|
||||
"method": "list",
|
||||
"group": "files",
|
||||
"weight": 439,
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
@@ -30826,8 +30844,7 @@
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -30838,8 +30855,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -30885,7 +30901,7 @@
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Create a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "ResourceToken",
|
||||
@@ -30902,14 +30918,13 @@
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/create-file-token.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -30920,8 +30935,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -30953,15 +30967,6 @@
|
||||
"default": null,
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"default": [],
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31003,8 +31008,7 @@
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -31015,8 +31019,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -31042,7 +31045,7 @@
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ResourceToken",
|
||||
@@ -31054,19 +31057,18 @@
|
||||
"x-appwrite": {
|
||||
"method": "update",
|
||||
"group": "tokens",
|
||||
"weight": 440,
|
||||
"weight": 439,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/update.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -31077,8 +31079,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -31102,15 +31103,6 @@
|
||||
"default": null,
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission string. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"default": null,
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31136,7 +31128,7 @@
|
||||
"x-appwrite": {
|
||||
"method": "delete",
|
||||
"group": "tokens",
|
||||
"weight": 441,
|
||||
"weight": 440,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
@@ -31147,8 +31139,7 @@
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
@@ -31159,8 +31150,7 @@
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -31175,68 +31165,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/tokens\/{tokenId}\/jwt": {
|
||||
"get": {
|
||||
"summary": "Get token as JWT",
|
||||
"operationId": "tokensGetJWT",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
"application\/json"
|
||||
],
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Get a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "JWT",
|
||||
"schema": {
|
||||
"$ref": "#\/definitions\/jwt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "getJWT",
|
||||
"group": "tokens",
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/get-j-w-t.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "File token ID.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>",
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/users": {
|
||||
"get": {
|
||||
"summary": "List users",
|
||||
@@ -37464,6 +37392,15 @@
|
||||
},
|
||||
"x-example": []
|
||||
},
|
||||
"lengths": {
|
||||
"type": "array",
|
||||
"description": "Index attributes length.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"x-example": []
|
||||
},
|
||||
"orders": {
|
||||
"type": "array",
|
||||
"description": "Index orders.",
|
||||
@@ -37490,6 +37427,7 @@
|
||||
"status",
|
||||
"error",
|
||||
"attributes",
|
||||
"lengths",
|
||||
"$createdAt",
|
||||
"$updatedAt"
|
||||
]
|
||||
@@ -38582,16 +38520,6 @@
|
||||
"description": "Token creation date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"$permissions": {
|
||||
"type": "array",
|
||||
"description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-example": [
|
||||
"read(\"any\")"
|
||||
]
|
||||
},
|
||||
"resourceId": {
|
||||
"type": "string",
|
||||
"description": "Resource ID.",
|
||||
@@ -38607,6 +38535,11 @@
|
||||
"description": "Token expiration date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "JWT encoded string.",
|
||||
"x-example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
|
||||
},
|
||||
"accessedAt": {
|
||||
"type": "string",
|
||||
"description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.",
|
||||
@@ -38616,10 +38549,10 @@
|
||||
"required": [
|
||||
"$id",
|
||||
"$createdAt",
|
||||
"$permissions",
|
||||
"resourceId",
|
||||
"resourceType",
|
||||
"expire",
|
||||
"secret",
|
||||
"accessedAt"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -3223,12 +3223,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -3356,12 +3356,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -3910,12 +3910,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
@@ -7644,26 +7644,6 @@
|
||||
}
|
||||
],
|
||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
},
|
||||
{
|
||||
"name": "createDocuments",
|
||||
"parameters": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"required": [
|
||||
"databaseId",
|
||||
"collectionId",
|
||||
"documents"
|
||||
],
|
||||
"responses": [
|
||||
{
|
||||
"code": 201,
|
||||
"model": "#\/definitions\/documentList"
|
||||
}
|
||||
],
|
||||
"description": "Create new Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
@@ -8460,6 +8440,15 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"lengths": {
|
||||
"type": "array",
|
||||
"description": "Length of index. Maximum of 100",
|
||||
"default": [],
|
||||
"x-example": null,
|
||||
"items": {
|
||||
"type": "integer"
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -17579,6 +17568,7 @@
|
||||
"remix",
|
||||
"lynx",
|
||||
"flutter",
|
||||
"react-native",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
@@ -18007,6 +17997,7 @@
|
||||
"remix",
|
||||
"lynx",
|
||||
"flutter",
|
||||
"react-native",
|
||||
"vite",
|
||||
"other"
|
||||
],
|
||||
@@ -20604,6 +20595,15 @@
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -20721,12 +20721,12 @@
|
||||
},
|
||||
{
|
||||
"name": "quality",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to 100.",
|
||||
"description": "Preview image quality. Pass an integer between 0 to 100. Defaults to keep existing image quality.",
|
||||
"required": false,
|
||||
"type": "integer",
|
||||
"format": "int32",
|
||||
"x-example": 0,
|
||||
"default": 100,
|
||||
"x-example": -1,
|
||||
"default": -1,
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
@@ -20804,6 +20804,15 @@
|
||||
"x-enum-keys": [],
|
||||
"default": "",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -20876,6 +20885,15 @@
|
||||
"type": "string",
|
||||
"x-example": "<FILE_ID>",
|
||||
"in": "path"
|
||||
},
|
||||
{
|
||||
"name": "token",
|
||||
"description": "File token for accessing this file.",
|
||||
"required": false,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN>",
|
||||
"default": "",
|
||||
"in": "query"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -21948,7 +21966,7 @@
|
||||
"x-appwrite": {
|
||||
"method": "list",
|
||||
"group": "files",
|
||||
"weight": 439,
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
@@ -21959,22 +21977,19 @@
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -22020,7 +22035,7 @@
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Create a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"description": "Create a new token. A token is linked to a file. Token can be passed as a header or request get parameter.",
|
||||
"responses": {
|
||||
"201": {
|
||||
"description": "ResourceToken",
|
||||
@@ -22037,28 +22052,25 @@
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/create-file-token.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file or a bucket and manages permissions for those file(s). Token can be passed as a header or request get parameter.",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new token. A token is linked to a file. Token can be passed as a header or request get parameter.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -22090,15 +22102,6 @@
|
||||
"default": null,
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission strings. By default, only the current user is granted all permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"default": [],
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22140,22 +22143,19 @@
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -22181,7 +22181,7 @@
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"description": "Update a token by its unique ID. Use this endpoint to update a token's expiry date.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "ResourceToken",
|
||||
@@ -22193,33 +22193,30 @@
|
||||
"x-appwrite": {
|
||||
"method": "update",
|
||||
"group": "tokens",
|
||||
"weight": 440,
|
||||
"weight": 439,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/update.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date or permissions.",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterUpdate a token by its unique ID. Use this endpoint to update a token's expiry date.",
|
||||
"rate-limit": 60,
|
||||
"rate-time": 60,
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -22243,15 +22240,6 @@
|
||||
"default": null,
|
||||
"x-example": null,
|
||||
"x-nullable": true
|
||||
},
|
||||
"permissions": {
|
||||
"type": "array",
|
||||
"description": "An array of permission string. By default, the current permissions are inherited. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"default": null,
|
||||
"x-example": "[\"read(\"any\")\"]",
|
||||
"items": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22277,7 +22265,7 @@
|
||||
"x-appwrite": {
|
||||
"method": "delete",
|
||||
"group": "tokens",
|
||||
"weight": 441,
|
||||
"weight": 440,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
@@ -22288,22 +22276,19 @@
|
||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||
"scope": "tokens.write",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"console",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
"Key": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
"Key": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
@@ -22318,70 +22303,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/tokens\/{tokenId}\/jwt": {
|
||||
"get": {
|
||||
"summary": "Get token as JWT",
|
||||
"operationId": "tokensGetJWT",
|
||||
"consumes": [],
|
||||
"produces": [
|
||||
"application\/json"
|
||||
],
|
||||
"tags": [
|
||||
"tokens"
|
||||
],
|
||||
"description": "Get a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "JWT",
|
||||
"schema": {
|
||||
"$ref": "#\/definitions\/jwt"
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-appwrite": {
|
||||
"method": "getJWT",
|
||||
"group": "tokens",
|
||||
"weight": 438,
|
||||
"cookies": false,
|
||||
"type": "",
|
||||
"deprecated": false,
|
||||
"demo": "tokens\/get-j-w-t.md",
|
||||
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterGet a JWT based token by its unique ID. You can use the JWT to authenticate on behalf of the user.",
|
||||
"rate-limit": 0,
|
||||
"rate-time": 3600,
|
||||
"rate-key": "url:{url},ip:{ip}",
|
||||
"scope": "tokens.read",
|
||||
"platforms": [
|
||||
"client",
|
||||
"server",
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"auth": {
|
||||
"Project": [],
|
||||
"Session": []
|
||||
}
|
||||
},
|
||||
"security": [
|
||||
{
|
||||
"Project": [],
|
||||
"Session": [],
|
||||
"Key": [],
|
||||
"JWT": []
|
||||
}
|
||||
],
|
||||
"parameters": [
|
||||
{
|
||||
"name": "tokenId",
|
||||
"description": "File token ID.",
|
||||
"required": true,
|
||||
"type": "string",
|
||||
"x-example": "<TOKEN_ID>",
|
||||
"in": "path"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"\/users": {
|
||||
"get": {
|
||||
"summary": "List users",
|
||||
@@ -27498,6 +27419,15 @@
|
||||
},
|
||||
"x-example": []
|
||||
},
|
||||
"lengths": {
|
||||
"type": "array",
|
||||
"description": "Index attributes length.",
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"format": "int32"
|
||||
},
|
||||
"x-example": []
|
||||
},
|
||||
"orders": {
|
||||
"type": "array",
|
||||
"description": "Index orders.",
|
||||
@@ -27524,6 +27454,7 @@
|
||||
"status",
|
||||
"error",
|
||||
"attributes",
|
||||
"lengths",
|
||||
"$createdAt",
|
||||
"$updatedAt"
|
||||
]
|
||||
@@ -28616,16 +28547,6 @@
|
||||
"description": "Token creation date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"$permissions": {
|
||||
"type": "array",
|
||||
"description": "Token permissions. [Learn more about permissions](https:\/\/appwrite.io\/docs\/permissions).",
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"x-example": [
|
||||
"read(\"any\")"
|
||||
]
|
||||
},
|
||||
"resourceId": {
|
||||
"type": "string",
|
||||
"description": "Resource ID.",
|
||||
@@ -28641,6 +28562,11 @@
|
||||
"description": "Token expiration date in ISO 8601 format.",
|
||||
"x-example": "2020-10-15T06:38:00.000+00:00"
|
||||
},
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"description": "JWT encoded string.",
|
||||
"x-example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
|
||||
},
|
||||
"accessedAt": {
|
||||
"type": "string",
|
||||
"description": "Most recent access date in ISO 8601 format. This attribute is only updated again after 24 hours.",
|
||||
@@ -28650,10 +28576,10 @@
|
||||
"required": [
|
||||
"$id",
|
||||
"$createdAt",
|
||||
"$permissions",
|
||||
"resourceId",
|
||||
"resourceType",
|
||||
"expire",
|
||||
"secret",
|
||||
"accessedAt"
|
||||
]
|
||||
},
|
||||
|
||||
@@ -13,7 +13,7 @@ avatars.getBrowser(
|
||||
Browser.AVANT_BROWSER, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -13,7 +13,7 @@ avatars.getCreditCard(
|
||||
CreditCard.AMERICAN_EXPRESS, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -13,7 +13,7 @@ avatars.getFlag(
|
||||
Flag.AFGHANISTAN, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -11,6 +11,7 @@ Storage storage = new Storage(client);
|
||||
storage.getFileDownload(
|
||||
"<BUCKET_ID>", // bucketId
|
||||
"<FILE_ID>", // fileId
|
||||
"<TOKEN>", // token (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -14,7 +14,7 @@ storage.getFilePreview(
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
ImageGravity.CENTER, // gravity (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
0, // borderWidth (optional)
|
||||
"", // borderColor (optional)
|
||||
0, // borderRadius (optional)
|
||||
@@ -22,6 +22,7 @@ storage.getFilePreview(
|
||||
-360, // rotation (optional)
|
||||
"", // background (optional)
|
||||
ImageFormat.JPG, // output (optional)
|
||||
"<TOKEN>", // token (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -11,6 +11,7 @@ Storage storage = new Storage(client);
|
||||
storage.getFileView(
|
||||
"<BUCKET_ID>", // bucketId
|
||||
"<FILE_ID>", // fileId
|
||||
"<TOKEN>", // token (optional)
|
||||
new CoroutineCallback<>((result, error) -> {
|
||||
if (error != null) {
|
||||
error.printStackTrace();
|
||||
|
||||
@@ -13,5 +13,5 @@ val result = avatars.getBrowser(
|
||||
code = Browser.AVANT_BROWSER,
|
||||
width = 0, // (optional)
|
||||
height = 0, // (optional)
|
||||
quality = 0, // (optional)
|
||||
quality = -1, // (optional)
|
||||
)
|
||||
@@ -13,5 +13,5 @@ val result = avatars.getCreditCard(
|
||||
code = CreditCard.AMERICAN_EXPRESS,
|
||||
width = 0, // (optional)
|
||||
height = 0, // (optional)
|
||||
quality = 0, // (optional)
|
||||
quality = -1, // (optional)
|
||||
)
|
||||
@@ -13,5 +13,5 @@ val result = avatars.getFlag(
|
||||
code = Flag.AFGHANISTAN,
|
||||
width = 0, // (optional)
|
||||
height = 0, // (optional)
|
||||
quality = 0, // (optional)
|
||||
quality = -1, // (optional)
|
||||
)
|
||||
@@ -11,4 +11,5 @@ val storage = Storage(client)
|
||||
val result = storage.getFileDownload(
|
||||
bucketId = "<BUCKET_ID>",
|
||||
fileId = "<FILE_ID>",
|
||||
token = "<TOKEN>", // (optional)
|
||||
)
|
||||
@@ -14,7 +14,7 @@ val result = storage.getFilePreview(
|
||||
width = 0, // (optional)
|
||||
height = 0, // (optional)
|
||||
gravity = ImageGravity.CENTER, // (optional)
|
||||
quality = 0, // (optional)
|
||||
quality = -1, // (optional)
|
||||
borderWidth = 0, // (optional)
|
||||
borderColor = "", // (optional)
|
||||
borderRadius = 0, // (optional)
|
||||
@@ -22,4 +22,5 @@ val result = storage.getFilePreview(
|
||||
rotation = -360, // (optional)
|
||||
background = "", // (optional)
|
||||
output = ImageFormat.JPG, // (optional)
|
||||
token = "<TOKEN>", // (optional)
|
||||
)
|
||||
@@ -11,4 +11,5 @@ val storage = Storage(client)
|
||||
val result = storage.getFileView(
|
||||
bucketId = "<BUCKET_ID>",
|
||||
fileId = "<FILE_ID>",
|
||||
token = "<TOKEN>", // (optional)
|
||||
)
|
||||
@@ -11,6 +11,6 @@ let bytes = try await avatars.getBrowser(
|
||||
code: .avantBrowser,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0 // optional
|
||||
quality: -1 // optional
|
||||
)
|
||||
|
||||
|
||||
@@ -11,6 +11,6 @@ let bytes = try await avatars.getCreditCard(
|
||||
code: .americanExpress,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0 // optional
|
||||
quality: -1 // optional
|
||||
)
|
||||
|
||||
|
||||
@@ -11,6 +11,6 @@ let bytes = try await avatars.getFlag(
|
||||
code: .afghanistan,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0 // optional
|
||||
quality: -1 // optional
|
||||
)
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ let storage = Storage(client)
|
||||
|
||||
let bytes = try await storage.getFileDownload(
|
||||
bucketId: "<BUCKET_ID>",
|
||||
fileId: "<FILE_ID>"
|
||||
fileId: "<FILE_ID>",
|
||||
token: "<TOKEN>" // optional
|
||||
)
|
||||
|
||||
|
||||
@@ -13,13 +13,14 @@ let bytes = try await storage.getFilePreview(
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
gravity: .center, // optional
|
||||
quality: 0, // optional
|
||||
quality: -1, // optional
|
||||
borderWidth: 0, // optional
|
||||
borderColor: "", // optional
|
||||
borderRadius: 0, // optional
|
||||
opacity: 0, // optional
|
||||
rotation: -360, // optional
|
||||
background: "", // optional
|
||||
output: .jpg // optional
|
||||
output: .jpg, // optional
|
||||
token: "<TOKEN>" // optional
|
||||
)
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ let storage = Storage(client)
|
||||
|
||||
let bytes = try await storage.getFileView(
|
||||
bucketId: "<BUCKET_ID>",
|
||||
fileId: "<FILE_ID>"
|
||||
fileId: "<FILE_ID>",
|
||||
token: "<TOKEN>" // optional
|
||||
)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ UInt8List bytes = await avatars.getBrowser(
|
||||
code: Browser.avantBrowser,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0, // optional
|
||||
quality: -1, // optional
|
||||
)
|
||||
|
||||
final file = File('path_to_file/filename.ext');
|
||||
@@ -23,7 +23,7 @@ FutureBuilder(
|
||||
code: Browser.avantBrowser,
|
||||
width:0 , // optional
|
||||
height:0 , // optional
|
||||
quality:0 , // optional
|
||||
quality:-1 , // optional
|
||||
), // Works for both public file and private file, for private files you need to be logged in
|
||||
builder: (context, snapshot) {
|
||||
return snapshot.hasData && snapshot.data != null
|
||||
|
||||
@@ -11,7 +11,7 @@ UInt8List bytes = await avatars.getCreditCard(
|
||||
code: CreditCard.americanExpress,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0, // optional
|
||||
quality: -1, // optional
|
||||
)
|
||||
|
||||
final file = File('path_to_file/filename.ext');
|
||||
@@ -23,7 +23,7 @@ FutureBuilder(
|
||||
code: CreditCard.americanExpress,
|
||||
width:0 , // optional
|
||||
height:0 , // optional
|
||||
quality:0 , // optional
|
||||
quality:-1 , // optional
|
||||
), // Works for both public file and private file, for private files you need to be logged in
|
||||
builder: (context, snapshot) {
|
||||
return snapshot.hasData && snapshot.data != null
|
||||
|
||||
@@ -11,7 +11,7 @@ UInt8List bytes = await avatars.getFlag(
|
||||
code: Flag.afghanistan,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0, // optional
|
||||
quality: -1, // optional
|
||||
)
|
||||
|
||||
final file = File('path_to_file/filename.ext');
|
||||
@@ -23,7 +23,7 @@ FutureBuilder(
|
||||
code: Flag.afghanistan,
|
||||
width:0 , // optional
|
||||
height:0 , // optional
|
||||
quality:0 , // optional
|
||||
quality:-1 , // optional
|
||||
), // Works for both public file and private file, for private files you need to be logged in
|
||||
builder: (context, snapshot) {
|
||||
return snapshot.hasData && snapshot.data != null
|
||||
|
||||
@@ -10,6 +10,7 @@ Storage storage = Storage(client);
|
||||
UInt8List bytes = await storage.getFileDownload(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
token: '<TOKEN>', // optional
|
||||
)
|
||||
|
||||
final file = File('path_to_file/filename.ext');
|
||||
@@ -20,6 +21,7 @@ FutureBuilder(
|
||||
future: storage.getFileDownload(
|
||||
bucketId:'<BUCKET_ID>' ,
|
||||
fileId:'<FILE_ID>' ,
|
||||
token:'<TOKEN>' , // optional
|
||||
), // Works for both public file and private file, for private files you need to be logged in
|
||||
builder: (context, snapshot) {
|
||||
return snapshot.hasData && snapshot.data != null
|
||||
|
||||
@@ -13,7 +13,7 @@ UInt8List bytes = await storage.getFilePreview(
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
gravity: ImageGravity.center, // optional
|
||||
quality: 0, // optional
|
||||
quality: -1, // optional
|
||||
borderWidth: 0, // optional
|
||||
borderColor: '', // optional
|
||||
borderRadius: 0, // optional
|
||||
@@ -21,6 +21,7 @@ UInt8List bytes = await storage.getFilePreview(
|
||||
rotation: -360, // optional
|
||||
background: '', // optional
|
||||
output: ImageFormat.jpg, // optional
|
||||
token: '<TOKEN>', // optional
|
||||
)
|
||||
|
||||
final file = File('path_to_file/filename.ext');
|
||||
@@ -34,7 +35,7 @@ FutureBuilder(
|
||||
width:0 , // optional
|
||||
height:0 , // optional
|
||||
gravity: ImageGravity.center, // optional
|
||||
quality:0 , // optional
|
||||
quality:-1 , // optional
|
||||
borderWidth:0 , // optional
|
||||
borderColor:'' , // optional
|
||||
borderRadius:0 , // optional
|
||||
@@ -42,6 +43,7 @@ FutureBuilder(
|
||||
rotation:-360 , // optional
|
||||
background:'' , // optional
|
||||
output: ImageFormat.jpg, // optional
|
||||
token:'<TOKEN>' , // optional
|
||||
), // Works for both public file and private file, for private files you need to be logged in
|
||||
builder: (context, snapshot) {
|
||||
return snapshot.hasData && snapshot.data != null
|
||||
|
||||
@@ -10,6 +10,7 @@ Storage storage = Storage(client);
|
||||
UInt8List bytes = await storage.getFileView(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
token: '<TOKEN>', // optional
|
||||
)
|
||||
|
||||
final file = File('path_to_file/filename.ext');
|
||||
@@ -20,6 +21,7 @@ FutureBuilder(
|
||||
future: storage.getFileView(
|
||||
bucketId:'<BUCKET_ID>' ,
|
||||
fileId:'<FILE_ID>' ,
|
||||
token:'<TOKEN>' , // optional
|
||||
), // Works for both public file and private file, for private files you need to be logged in
|
||||
builder: (context, snapshot) {
|
||||
return snapshot.hasData && snapshot.data != null
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getBrowser(
|
||||
Browser.AvantBrowser, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getCreditCard(
|
||||
CreditCard.AmericanExpress, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getFlag(
|
||||
Flag.Afghanistan, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -8,7 +8,8 @@ const storage = new Storage(client);
|
||||
|
||||
const result = storage.getFileDownload(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>' // fileId
|
||||
'<FILE_ID>', // fileId
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -12,14 +12,15 @@ const result = storage.getFilePreview(
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
ImageGravity.Center, // gravity (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
0, // borderWidth (optional)
|
||||
'', // borderColor (optional)
|
||||
0, // borderRadius (optional)
|
||||
0, // opacity (optional)
|
||||
-360, // rotation (optional)
|
||||
'', // background (optional)
|
||||
ImageFormat.Jpg // output (optional)
|
||||
ImageFormat.Jpg, // output (optional)
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -8,7 +8,8 @@ const storage = new Storage(client);
|
||||
|
||||
const result = storage.getFileView(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>' // fileId
|
||||
'<FILE_ID>', // fileId
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getBrowser(
|
||||
Browser.AvantBrowser, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getCreditCard(
|
||||
CreditCard.AmericanExpress, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getFlag(
|
||||
Flag.Afghanistan, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -8,7 +8,8 @@ const storage = new Storage(client);
|
||||
|
||||
const result = storage.getFileDownload(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>' // fileId
|
||||
'<FILE_ID>', // fileId
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -12,14 +12,15 @@ const result = storage.getFilePreview(
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
ImageGravity.Center, // gravity (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
0, // borderWidth (optional)
|
||||
'', // borderColor (optional)
|
||||
0, // borderRadius (optional)
|
||||
0, // opacity (optional)
|
||||
-360, // rotation (optional)
|
||||
'', // background (optional)
|
||||
ImageFormat.Jpg // output (optional)
|
||||
ImageFormat.Jpg, // output (optional)
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -8,7 +8,8 @@ const storage = new Storage(client);
|
||||
|
||||
const result = storage.getFileView(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>' // fileId
|
||||
'<FILE_ID>', // fileId
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -5,3 +5,4 @@ appwrite databases createIndex \
|
||||
--type key \
|
||||
--attributes one two three \
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
appwrite storage getFileDownload \
|
||||
--bucketId <BUCKET_ID> \
|
||||
--fileId <FILE_ID>
|
||||
--fileId <FILE_ID> \
|
||||
|
||||
|
||||
@@ -12,3 +12,4 @@ appwrite storage getFilePreview \
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
appwrite storage getFileView \
|
||||
--bucketId <BUCKET_ID> \
|
||||
--fileId <FILE_ID>
|
||||
--fileId <FILE_ID> \
|
||||
|
||||
|
||||
@@ -2,4 +2,3 @@ appwrite tokens createFileToken \
|
||||
--bucketId <BUCKET_ID> \
|
||||
--fileId <FILE_ID> \
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
appwrite tokens update \
|
||||
--tokenId <TOKEN_ID> \
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getBrowser(
|
||||
Browser.AvantBrowser, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getCreditCard(
|
||||
CreditCard.AmericanExpress, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -10,7 +10,7 @@ const result = avatars.getFlag(
|
||||
Flag.Afghanistan, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -12,7 +12,8 @@ const result = await databases.createIndex(
|
||||
'', // key
|
||||
IndexType.Key, // type
|
||||
[], // attributes
|
||||
[] // orders (optional)
|
||||
[], // orders (optional)
|
||||
[] // lengths (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -8,7 +8,8 @@ const storage = new Storage(client);
|
||||
|
||||
const result = storage.getFileDownload(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>' // fileId
|
||||
'<FILE_ID>', // fileId
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -12,14 +12,15 @@ const result = storage.getFilePreview(
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
ImageGravity.Center, // gravity (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
0, // borderWidth (optional)
|
||||
'', // borderColor (optional)
|
||||
0, // borderRadius (optional)
|
||||
0, // opacity (optional)
|
||||
-360, // rotation (optional)
|
||||
'', // background (optional)
|
||||
ImageFormat.Jpg // output (optional)
|
||||
ImageFormat.Jpg, // output (optional)
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -8,7 +8,8 @@ const storage = new Storage(client);
|
||||
|
||||
const result = storage.getFileView(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>' // fileId
|
||||
'<FILE_ID>', // fileId
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -9,8 +9,7 @@ const tokens = new Tokens(client);
|
||||
const result = await tokens.createFileToken(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>', // fileId
|
||||
'', // expire (optional)
|
||||
["read("any")"] // permissions (optional)
|
||||
'' // expire (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -8,8 +8,7 @@ const tokens = new Tokens(client);
|
||||
|
||||
const result = await tokens.update(
|
||||
'<TOKEN_ID>', // tokenId
|
||||
'', // expire (optional)
|
||||
["read("any")"] // permissions (optional)
|
||||
'' // expire (optional)
|
||||
);
|
||||
|
||||
console.log(result);
|
||||
|
||||
@@ -11,5 +11,5 @@ UInt8List result = await avatars.getBrowser(
|
||||
code: Browser.avantBrowser,
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
quality: 0, // (optional)
|
||||
quality: -1, // (optional)
|
||||
);
|
||||
|
||||
@@ -11,5 +11,5 @@ UInt8List result = await avatars.getCreditCard(
|
||||
code: CreditCard.americanExpress,
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
quality: 0, // (optional)
|
||||
quality: -1, // (optional)
|
||||
);
|
||||
|
||||
@@ -11,5 +11,5 @@ UInt8List result = await avatars.getFlag(
|
||||
code: Flag.afghanistan,
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
quality: 0, // (optional)
|
||||
quality: -1, // (optional)
|
||||
);
|
||||
|
||||
@@ -14,4 +14,5 @@ Index result = await databases.createIndex(
|
||||
type: IndexType.key,
|
||||
attributes: [],
|
||||
orders: [], // (optional)
|
||||
lengths: [], // (optional)
|
||||
);
|
||||
|
||||
@@ -10,4 +10,5 @@ Storage storage = Storage(client);
|
||||
UInt8List result = await storage.getFileDownload(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
token: '<TOKEN>', // (optional)
|
||||
);
|
||||
|
||||
@@ -13,7 +13,7 @@ UInt8List result = await storage.getFilePreview(
|
||||
width: 0, // (optional)
|
||||
height: 0, // (optional)
|
||||
gravity: ImageGravity.center, // (optional)
|
||||
quality: 0, // (optional)
|
||||
quality: -1, // (optional)
|
||||
borderWidth: 0, // (optional)
|
||||
borderColor: '', // (optional)
|
||||
borderRadius: 0, // (optional)
|
||||
@@ -21,4 +21,5 @@ UInt8List result = await storage.getFilePreview(
|
||||
rotation: -360, // (optional)
|
||||
background: '', // (optional)
|
||||
output: ImageFormat.jpg, // (optional)
|
||||
token: '<TOKEN>', // (optional)
|
||||
);
|
||||
|
||||
@@ -10,4 +10,5 @@ Storage storage = Storage(client);
|
||||
UInt8List result = await storage.getFileView(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
token: '<TOKEN>', // (optional)
|
||||
);
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
|
||||
Client client = Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
Tokens tokens = Tokens(client);
|
||||
|
||||
@@ -11,5 +11,4 @@ ResourceToken result = await tokens.createFileToken(
|
||||
bucketId: '<BUCKET_ID>',
|
||||
fileId: '<FILE_ID>',
|
||||
expire: '', // (optional)
|
||||
permissions: ["read("any")"], // (optional)
|
||||
);
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
|
||||
Client client = Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
Tokens tokens = Tokens(client);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
|
||||
Client client = Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
Tokens tokens = Tokens(client);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import 'package:dart_appwrite/dart_appwrite.dart';
|
||||
Client client = Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
Tokens tokens = Tokens(client);
|
||||
|
||||
|
||||
@@ -3,12 +3,11 @@ import 'package:dart_appwrite/dart_appwrite.dart';
|
||||
Client client = Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
Tokens tokens = Tokens(client);
|
||||
|
||||
ResourceToken result = await tokens.update(
|
||||
tokenId: '<TOKEN_ID>',
|
||||
expire: '', // (optional)
|
||||
permissions: ["read("any")"], // (optional)
|
||||
);
|
||||
|
||||
@@ -11,5 +11,5 @@ const result = avatars.getBrowser(
|
||||
Browser.AvantBrowser, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
@@ -11,5 +11,5 @@ const result = avatars.getCreditCard(
|
||||
CreditCard.AmericanExpress, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
@@ -11,5 +11,5 @@ const result = avatars.getFlag(
|
||||
Flag.Afghanistan, // code
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
0 // quality (optional)
|
||||
-1 // quality (optional)
|
||||
);
|
||||
|
||||
@@ -13,5 +13,6 @@ const response = await databases.createIndex(
|
||||
'', // key
|
||||
IndexType.Key, // type
|
||||
[], // attributes
|
||||
[] // orders (optional)
|
||||
[], // orders (optional)
|
||||
[] // lengths (optional)
|
||||
);
|
||||
|
||||
@@ -9,5 +9,6 @@ const storage = new Storage(client);
|
||||
|
||||
const result = storage.getFileDownload(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>' // fileId
|
||||
'<FILE_ID>', // fileId
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
@@ -13,12 +13,13 @@ const result = storage.getFilePreview(
|
||||
0, // width (optional)
|
||||
0, // height (optional)
|
||||
ImageGravity.Center, // gravity (optional)
|
||||
0, // quality (optional)
|
||||
-1, // quality (optional)
|
||||
0, // borderWidth (optional)
|
||||
'', // borderColor (optional)
|
||||
0, // borderRadius (optional)
|
||||
0, // opacity (optional)
|
||||
-360, // rotation (optional)
|
||||
'', // background (optional)
|
||||
ImageFormat.Jpg // output (optional)
|
||||
ImageFormat.Jpg, // output (optional)
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
@@ -9,5 +9,6 @@ const storage = new Storage(client);
|
||||
|
||||
const result = storage.getFileView(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>' // fileId
|
||||
'<FILE_ID>', // fileId
|
||||
'<TOKEN>' // token (optional)
|
||||
);
|
||||
|
||||
@@ -3,13 +3,12 @@ import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts";
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
const tokens = new Tokens(client);
|
||||
|
||||
const response = await tokens.createFileToken(
|
||||
'<BUCKET_ID>', // bucketId
|
||||
'<FILE_ID>', // fileId
|
||||
'', // expire (optional)
|
||||
["read("any")"] // permissions (optional)
|
||||
'' // expire (optional)
|
||||
);
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts";
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
const tokens = new Tokens(client);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts";
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
const tokens = new Tokens(client);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts";
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
const tokens = new Tokens(client);
|
||||
|
||||
|
||||
@@ -3,12 +3,11 @@ import { Client, Tokens } from "https://deno.land/x/appwrite/mod.ts";
|
||||
const client = new Client()
|
||||
.setEndpoint('https://<REGION>.cloud.appwrite.io/v1') // Your API Endpoint
|
||||
.setProject('<YOUR_PROJECT_ID>') // Your project ID
|
||||
.setSession(''); // The user session to authenticate with
|
||||
.setKey('<YOUR_API_KEY>'); // Your secret API key
|
||||
|
||||
const tokens = new Tokens(client);
|
||||
|
||||
const response = await tokens.update(
|
||||
'<TOKEN_ID>', // tokenId
|
||||
'', // expire (optional)
|
||||
["read("any")"] // permissions (optional)
|
||||
'' // expire (optional)
|
||||
);
|
||||
|
||||
@@ -14,5 +14,5 @@ byte[] result = await avatars.GetBrowser(
|
||||
code: Browser.AvantBrowser,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0 // optional
|
||||
quality: -1 // optional
|
||||
);
|
||||
@@ -14,5 +14,5 @@ byte[] result = await avatars.GetCreditCard(
|
||||
code: CreditCard.AmericanExpress,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0 // optional
|
||||
quality: -1 // optional
|
||||
);
|
||||
@@ -14,5 +14,5 @@ byte[] result = await avatars.GetFlag(
|
||||
code: Flag.Afghanistan,
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
quality: 0 // optional
|
||||
quality: -1 // optional
|
||||
);
|
||||
@@ -16,5 +16,6 @@ Index result = await databases.CreateIndex(
|
||||
key: "",
|
||||
type: IndexType.Key,
|
||||
attributes: new List<string>(),
|
||||
orders: new List<string>() // optional
|
||||
orders: new List<string>(), // optional
|
||||
lengths: new List<long>() // optional
|
||||
);
|
||||
@@ -11,5 +11,6 @@ Storage storage = new Storage(client);
|
||||
|
||||
byte[] result = await storage.GetFileDownload(
|
||||
bucketId: "<BUCKET_ID>",
|
||||
fileId: "<FILE_ID>"
|
||||
fileId: "<FILE_ID>",
|
||||
token: "<TOKEN>" // optional
|
||||
);
|
||||
@@ -16,12 +16,13 @@ byte[] result = await storage.GetFilePreview(
|
||||
width: 0, // optional
|
||||
height: 0, // optional
|
||||
gravity: ImageGravity.Center, // optional
|
||||
quality: 0, // optional
|
||||
quality: -1, // optional
|
||||
borderWidth: 0, // optional
|
||||
borderColor: "", // optional
|
||||
borderRadius: 0, // optional
|
||||
opacity: 0, // optional
|
||||
rotation: -360, // optional
|
||||
background: "", // optional
|
||||
output: ImageFormat.Jpg // optional
|
||||
output: ImageFormat.Jpg, // optional
|
||||
token: "<TOKEN>" // optional
|
||||
);
|
||||
@@ -11,5 +11,6 @@ Storage storage = new Storage(client);
|
||||
|
||||
byte[] result = await storage.GetFileView(
|
||||
bucketId: "<BUCKET_ID>",
|
||||
fileId: "<FILE_ID>"
|
||||
fileId: "<FILE_ID>",
|
||||
token: "<TOKEN>" // optional
|
||||
);
|
||||
@@ -5,13 +5,12 @@ using Appwrite.Services;
|
||||
Client client = new Client()
|
||||
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.SetProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
.SetSession(""); // The user session to authenticate with
|
||||
.SetKey("<YOUR_API_KEY>"); // Your secret API key
|
||||
|
||||
Tokens tokens = new Tokens(client);
|
||||
|
||||
ResourceToken result = await tokens.CreateFileToken(
|
||||
bucketId: "<BUCKET_ID>",
|
||||
fileId: "<FILE_ID>",
|
||||
expire: "", // optional
|
||||
permissions: ["read("any")"] // optional
|
||||
expire: "" // optional
|
||||
);
|
||||
@@ -5,7 +5,7 @@ using Appwrite.Services;
|
||||
Client client = new Client()
|
||||
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.SetProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
.SetSession(""); // The user session to authenticate with
|
||||
.SetKey("<YOUR_API_KEY>"); // Your secret API key
|
||||
|
||||
Tokens tokens = new Tokens(client);
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ using Appwrite.Services;
|
||||
Client client = new Client()
|
||||
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.SetProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
.SetSession(""); // The user session to authenticate with
|
||||
.SetKey("<YOUR_API_KEY>"); // Your secret API key
|
||||
|
||||
Tokens tokens = new Tokens(client);
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ using Appwrite.Services;
|
||||
Client client = new Client()
|
||||
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.SetProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
.SetSession(""); // The user session to authenticate with
|
||||
.SetKey("<YOUR_API_KEY>"); // Your secret API key
|
||||
|
||||
Tokens tokens = new Tokens(client);
|
||||
|
||||
|
||||
@@ -5,12 +5,11 @@ using Appwrite.Services;
|
||||
Client client = new Client()
|
||||
.SetEndPoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
|
||||
.SetProject("<YOUR_PROJECT_ID>") // Your project ID
|
||||
.SetSession(""); // The user session to authenticate with
|
||||
.SetKey("<YOUR_API_KEY>"); // Your secret API key
|
||||
|
||||
Tokens tokens = new Tokens(client);
|
||||
|
||||
ResourceToken result = await tokens.Update(
|
||||
tokenId: "<TOKEN_ID>",
|
||||
expire: "", // optional
|
||||
permissions: ["read("any")"] // optional
|
||||
expire: "" // optional
|
||||
);
|
||||
@@ -18,7 +18,7 @@ func main() {
|
||||
"aa",
|
||||
avatars.WithGetBrowserWidth(0),
|
||||
avatars.WithGetBrowserHeight(0),
|
||||
avatars.WithGetBrowserQuality(0),
|
||||
avatars.WithGetBrowserQuality(-1),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
@@ -18,7 +18,7 @@ func main() {
|
||||
"amex",
|
||||
avatars.WithGetCreditCardWidth(0),
|
||||
avatars.WithGetCreditCardHeight(0),
|
||||
avatars.WithGetCreditCardQuality(0),
|
||||
avatars.WithGetCreditCardQuality(-1),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
@@ -18,7 +18,7 @@ func main() {
|
||||
"af",
|
||||
avatars.WithGetFlagWidth(0),
|
||||
avatars.WithGetFlagHeight(0),
|
||||
avatars.WithGetFlagQuality(0),
|
||||
avatars.WithGetFlagQuality(-1),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
@@ -21,6 +21,7 @@ func main() {
|
||||
"key",
|
||||
[]interface{}{},
|
||||
databases.WithCreateIndexOrders([]interface{}{}),
|
||||
databases.WithCreateIndexLengths([]interface{}{}),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
@@ -17,6 +17,7 @@ func main() {
|
||||
response, error := service.GetFileDownload(
|
||||
"<BUCKET_ID>",
|
||||
"<FILE_ID>",
|
||||
storage.WithGetFileDownloadToken("<TOKEN>"),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
@@ -20,7 +20,7 @@ func main() {
|
||||
storage.WithGetFilePreviewWidth(0),
|
||||
storage.WithGetFilePreviewHeight(0),
|
||||
storage.WithGetFilePreviewGravity("center"),
|
||||
storage.WithGetFilePreviewQuality(0),
|
||||
storage.WithGetFilePreviewQuality(-1),
|
||||
storage.WithGetFilePreviewBorderWidth(0),
|
||||
storage.WithGetFilePreviewBorderColor(""),
|
||||
storage.WithGetFilePreviewBorderRadius(0),
|
||||
@@ -28,6 +28,7 @@ func main() {
|
||||
storage.WithGetFilePreviewRotation(-360),
|
||||
storage.WithGetFilePreviewBackground(""),
|
||||
storage.WithGetFilePreviewOutput("jpg"),
|
||||
storage.WithGetFilePreviewToken("<TOKEN>"),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
@@ -17,6 +17,7 @@ func main() {
|
||||
response, error := service.GetFileView(
|
||||
"<BUCKET_ID>",
|
||||
"<FILE_ID>",
|
||||
storage.WithGetFileViewToken("<TOKEN>"),
|
||||
)
|
||||
|
||||
if error != nil {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user