Merge remote-tracking branch 'origin/main' into 1.7.x

# Conflicts:
#	app/config/specs/open-api3-1.7.x-console.json
#	app/config/specs/open-api3-1.7.x-server.json
#	app/config/specs/open-api3-latest-console.json
#	app/config/specs/open-api3-latest-server.json
#	app/config/specs/swagger2-1.7.x-console.json
#	app/config/specs/swagger2-1.7.x-server.json
#	app/config/specs/swagger2-latest-console.json
#	app/config/specs/swagger2-latest-server.json
#	app/init/constants.php
#	composer.lock
#	docs/references/databases/upsert-documents.md
#	tests/e2e/Services/Account/AccountCustomClientTest.php
This commit is contained in:
Jake Barnby
2025-07-21 19:22:15 +12:00
316 changed files with 4917 additions and 3588 deletions
+3 -1
View File
@@ -26,7 +26,7 @@
[**Appwrite 云公开测试版!立即注册!**](https://cloud.appwrite.io)
Appwrite 是一个基于 Docker 的端到端开发者平台,其容器化的微服务库可应用于网页端,移动端,以及后端。Appwrite 通过视觉化界面简化了从零开始编写 API 的繁琐过程,在保证软件安全的前提下为开发者创造了一个高效的开发环境
Appwrite 是一个基于 Docker 的端到端开发者平台,其容器化的微服务库可应用于网页端,移动端,原生应用,以及后端。它既包含后端服务器,也提供了用于部署静态和服务器端渲染前端的完全集成托管解决方案。Appwrite 通过视觉化界面简化了从零开始构建现代应用的复杂性和重复性,让您能够更快地构建安全的全栈应用
Appwrite 可以提供给开发者用户验证,外部授权,用户数据读写检索,文件储存,图像处理,云函数计算,[等多种服务](https://appwrite.io/docs).
@@ -179,6 +179,8 @@ docker run -it --rm `
- [**消息传递**](https://appwrite.io/docs/references/cloud/client-web/messaging) - 使用 Appwrite 消息传递功能通过推送通知、电子邮件和短信与用户进行通信。
- [**语言适配**](https://appwrite.io/docs/references/cloud/client-web/locale) - 根据用户所在的的国家和地区做出合适的语言适配。
- [**头像**](https://appwrite.io/docs/references/cloud/client-web/avatars) -管理用户头像、国家旗帜、浏览器图标、信用卡符号,和生成二维码。
- [**MCP**](https://appwrite.io/docs/tooling/mcp) - 使用 Appwrite 的模型上下文协议(Model Context Protocol)服务器,允许大语言模型(LLM)和 AI 工具(如 Claude Desktop、Cursor 和 Windsurf Editor)通过自然语言直接与您的 Appwrite 项目交互。
- [**站点**](https://appwrite.io/docs/products/sites) - 直接从 Appwrite 开发、部署和扩展您的 Web 应用程序,与您的后端一起。
如需完整的 API 界面文档,请访问 [https://appwrite.io/docs](https://appwrite.io/docs)。如需更多教程、新闻和公告,请订阅我们的 [博客](https://medium.com/appwrite-io) 和 加入我们的[Discord 社区](https://discord.gg/GSeTUeA)。
### 开发套件
+14 -9
View File
@@ -1,12 +1,14 @@
> We just announced Auto-increment support for Appwrite Databases - [Learn more](https://appwrite.io/blog/post/announcing-auto-increment-support)
> [Get started with Appwrite](https://apwr.dev/appcloud)
> [Join the Init kick off event 19th of May: The future of Appwrite with Founder & CEO Eldad Fux](https://www.youtube.com/watch?v=1g8tuogsp7A)
<br />
<p align="center">
<a href="https://appwrite.io" target="_blank"><img src="./public/images/banner.png" alt="Appwrite banner, with logo and text saying "Build Like a Team of Hundreds"></a>
<br />
<br />
<b>Appwrite is a backend platform for developing Web, Mobile, and Flutter applications. Built with the open source community and optimized for developer experience in the coding languages you love.</b>
<b>Appwrite is an all-in-one development platform for Web, Mobile, and Flutter applications. Use built-in backend infrastructure and web hosting, all from a single place. Built with the open source community and optimized for developer experience in the coding languages you love.</b>
<br />
<br />
</p>
@@ -25,7 +27,7 @@
English | [简体中文](README-CN.md)
Appwrite is an end-to-end backend server for Web, Mobile, Native, or Backend apps packaged as a set of Docker<nobr> microservices. Appwrite abstracts the complexity and repetitiveness required to build a modern backend API from scratch and allows you to build secure apps faster.
Appwrite is an end-to-end platform for building Web, Mobile, Native, or Backend apps, packaged as a set of Docker microservices. It includes both a backend server and a fully integrated hosting solution for deploying static and server-side rendered frontends. Appwrite abstracts the complexity and repetitiveness required to build modern apps from scratch and allows you to build secure, full-stack applications faster.
Using Appwrite, you can easily integrate your app with user authentication and multiple sign-in methods, a database for storing and querying users and team data, storage and file management, image manipulation, Cloud Functions, messaging, and [more services](https://appwrite.io/docs).
@@ -42,7 +44,7 @@ Find out more at: [https://appwrite.io](https://appwrite.io).
Table of Contents:
- [Getting Started](#getting-started)
- [Installation \& Setup](#installation--setup)
- [Self-Hosting](#self-hosting)
- [Unix](#unix)
- [Windows](#windows)
@@ -62,8 +64,9 @@ Table of Contents:
- [Follow Us](#follow-us)
- [License](#license)
## Getting Started
The easiest way to get started with Appwrite is by [signing up for Appwrite Cloud](https://cloud.appwrite.io/). While Appwrite Cloud is in public beta, you can build with Appwrite completely free, and we won't collect you credit card information.
## Installation & Setup
The easiest way to get started with Appwrite is by [signing up for Appwrite Cloud](https://cloud.appwrite.io/). While Appwrite Cloud is in public beta, you can build with Appwrite completely free, and we won't collect your credit card information.
## Self-Hosting
@@ -128,19 +131,19 @@ Choose from one of the providers below:
<td align="center" width="100" height="100">
<a href="https://gitpod.io/#https://github.com/appwrite/integration-for-gitpod">
<img width="50" height="39" src="public/images/integrations/gitpod-logo.svg" alt="Gitpod Logo" />
<br /><sub><b>Gitpod</b></sub></a>
<br /><sub><b>Gitpod</b></sub></a>
</a>
</td>
<td align="center" width="100" height="100">
<a href="https://www.linode.com/marketplace/apps/appwrite/appwrite/">
<img width="50" height="39" src="public/images/integrations/akamai-logo.svg" alt="Akamai Logo" />
<br /><sub><b>Akamai Compute</b></sub></a>
<br /><sub><b>Akamai Compute</b></sub></a>
</a>
</td>
<td align="center" width="100" height="100">
<a href="https://aws.amazon.com/marketplace/pp/prodview-2hiaeo2px4md6">
<img width="50" height="39" src="public/images/integrations/aws-logo.svg" alt="AWS Logo" />
<br /><sub><b>AWS Marketplace</b></sub></a>
<br /><sub><b>AWS Marketplace</b></sub></a>
</a>
</td>
</tr>
@@ -186,6 +189,8 @@ Getting started with Appwrite is as easy as creating a new project, choosing you
- [**Realtime**](https://appwrite.io/docs/realtime) - Listen to real-time events for any of your Appwrite services including users, storage, functions, databases, and more.
- [**Locale**](https://appwrite.io/docs/references/cloud/client-web/locale) - Track your user's location and manage your app locale-based data.
- [**Avatars**](https://appwrite.io/docs/references/cloud/client-web/avatars) - Manage your users' avatars, countries' flags, browser icons, and credit card symbols. Generate QR codes from links or plaintext strings.
- [**MCP**](https://appwrite.io/docs/tooling/mcp) - Use Appwrite's Model Context Protocol (MCP) server to allow LLMs and AI tools like Claude Desktop, Cursor, and Windsurf Editor to directly interact with your Appwrite project through natural language.
- [**Sites**](https://appwrite.io/docs/products/sites) - Develop, deploy, and scale your web applications directly from Appwrite, alongside your backend.
For the complete API documentation, visit [https://appwrite.io/docs](https://appwrite.io/docs). For more tutorials, news and announcements check out our [blog](https://medium.com/appwrite-io) and [Discord Server](https://discord.gg/GSeTUeA).
+276 -37
View File
@@ -4457,6 +4457,7 @@
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
"scope": "documents.write",
"platforms": [
"console",
"client",
"server",
"server"
@@ -4466,6 +4467,7 @@
{
"name": "createDocument",
"auth": {
"Admin": [],
"Session": [],
"Key": [],
"JWT": []
@@ -4890,7 +4892,7 @@
"x-appwrite": {
"method": "deleteDocument",
"group": "documents",
"weight": 117,
"weight": 119,
"cookies": false,
"type": "",
"deprecated": false,
@@ -4951,6 +4953,236 @@
]
}
},
"\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}\/{attribute}\/decrement": {
"patch": {
"summary": "Decrement document attribute",
"operationId": "databasesDecrementDocumentAttribute",
"tags": [
"databases"
],
"description": "Decrement a specific attribute of a document by a given value.",
"responses": {
"200": {
"description": "Document",
"content": {
"application\/json": {
"schema": {
"$ref": "#\/components\/schemas\/document"
}
}
}
}
},
"x-appwrite": {
"method": "decrementDocumentAttribute",
"group": "documents",
"weight": 116,
"cookies": false,
"type": "",
"deprecated": false,
"demo": "databases\/decrement-document-attribute.md",
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-document-attribute.md",
"rate-limit": 120,
"rate-time": 60,
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
"scope": "documents.write",
"platforms": [
"console",
"server",
"client",
"server"
],
"packaging": false,
"auth": {
"Project": []
}
},
"security": [
{
"Project": [],
"Session": [],
"JWT": []
}
],
"parameters": [
{
"name": "databaseId",
"description": "Database ID.",
"required": true,
"schema": {
"type": "string",
"x-example": "<DATABASE_ID>"
},
"in": "path"
},
{
"name": "collectionId",
"description": "Collection ID.",
"required": true,
"schema": {
"type": "string",
"x-example": "<COLLECTION_ID>"
},
"in": "path"
},
{
"name": "documentId",
"description": "Document ID.",
"required": true,
"schema": {
"type": "string",
"x-example": "<DOCUMENT_ID>"
},
"in": "path"
},
{
"name": "attribute",
"description": "Attribute key.",
"required": true,
"schema": {
"type": "string"
},
"in": "path"
}
],
"requestBody": {
"content": {
"application\/json": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "Value to decrement the attribute by. The value must be a number.",
"x-example": null
},
"min": {
"type": "number",
"description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.",
"x-example": null
}
}
}
}
}
}
}
},
"\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}\/{attribute}\/increment": {
"patch": {
"summary": "Increment document attribute",
"operationId": "databasesIncrementDocumentAttribute",
"tags": [
"databases"
],
"description": "Increment a specific attribute of a document by a given value.",
"responses": {
"200": {
"description": "Document",
"content": {
"application\/json": {
"schema": {
"$ref": "#\/components\/schemas\/document"
}
}
}
}
},
"x-appwrite": {
"method": "incrementDocumentAttribute",
"group": "documents",
"weight": 115,
"cookies": false,
"type": "",
"deprecated": false,
"demo": "databases\/increment-document-attribute.md",
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-document-attribute.md",
"rate-limit": 120,
"rate-time": 60,
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
"scope": "documents.write",
"platforms": [
"console",
"server",
"client",
"server"
],
"packaging": false,
"auth": {
"Project": []
}
},
"security": [
{
"Project": [],
"Session": [],
"JWT": []
}
],
"parameters": [
{
"name": "databaseId",
"description": "Database ID.",
"required": true,
"schema": {
"type": "string",
"x-example": "<DATABASE_ID>"
},
"in": "path"
},
{
"name": "collectionId",
"description": "Collection ID.",
"required": true,
"schema": {
"type": "string",
"x-example": "<COLLECTION_ID>"
},
"in": "path"
},
{
"name": "documentId",
"description": "Document ID.",
"required": true,
"schema": {
"type": "string",
"x-example": "<DOCUMENT_ID>"
},
"in": "path"
},
{
"name": "attribute",
"description": "Attribute key.",
"required": true,
"schema": {
"type": "string"
},
"in": "path"
}
],
"requestBody": {
"content": {
"application\/json": {
"schema": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "Value to increment the attribute by. The value must be a number.",
"x-example": null
},
"max": {
"type": "number",
"description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.",
"x-example": null
}
}
}
}
}
}
}
},
"\/functions\/{functionId}\/executions": {
"get": {
"summary": "List executions",
@@ -4974,7 +5206,7 @@
"x-appwrite": {
"method": "listExecutions",
"group": "executions",
"weight": 392,
"weight": 393,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5049,7 +5281,7 @@
"x-appwrite": {
"method": "createExecution",
"group": "executions",
"weight": 390,
"weight": 391,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5164,7 +5396,7 @@
"x-appwrite": {
"method": "getExecution",
"group": "executions",
"weight": 391,
"weight": 392,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5238,7 +5470,7 @@
"x-appwrite": {
"method": "query",
"group": "graphql",
"weight": 306,
"weight": 307,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -5290,7 +5522,7 @@
"x-appwrite": {
"method": "mutation",
"group": "graphql",
"weight": 305,
"weight": 306,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -5342,7 +5574,7 @@
"x-appwrite": {
"method": "get",
"group": null,
"weight": 122,
"weight": 124,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5394,7 +5626,7 @@
"x-appwrite": {
"method": "listCodes",
"group": null,
"weight": 123,
"weight": 125,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5446,7 +5678,7 @@
"x-appwrite": {
"method": "listContinents",
"group": null,
"weight": 127,
"weight": 129,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5498,7 +5730,7 @@
"x-appwrite": {
"method": "listCountries",
"group": null,
"weight": 124,
"weight": 126,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5550,7 +5782,7 @@
"x-appwrite": {
"method": "listCountriesEU",
"group": null,
"weight": 125,
"weight": 127,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5602,7 +5834,7 @@
"x-appwrite": {
"method": "listCountriesPhones",
"group": null,
"weight": 126,
"weight": 128,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5654,7 +5886,7 @@
"x-appwrite": {
"method": "listCurrencies",
"group": null,
"weight": 128,
"weight": 130,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5706,7 +5938,7 @@
"x-appwrite": {
"method": "listLanguages",
"group": null,
"weight": 129,
"weight": 131,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5758,7 +5990,7 @@
"x-appwrite": {
"method": "createSubscriber",
"group": "subscribers",
"weight": 352,
"weight": 353,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5841,7 +6073,7 @@
"x-appwrite": {
"method": "deleteSubscriber",
"group": "subscribers",
"weight": 356,
"weight": 357,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5916,7 +6148,7 @@
"x-appwrite": {
"method": "listFiles",
"group": "files",
"weight": 212,
"weight": 214,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6002,7 +6234,7 @@
"x-appwrite": {
"method": "createFile",
"group": "files",
"weight": 211,
"weight": 213,
"cookies": false,
"type": "upload",
"deprecated": false,
@@ -6100,7 +6332,7 @@
"x-appwrite": {
"method": "getFile",
"group": "files",
"weight": 213,
"weight": 215,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6172,7 +6404,7 @@
"x-appwrite": {
"method": "updateFile",
"group": "files",
"weight": 218,
"weight": 220,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6261,7 +6493,7 @@
"x-appwrite": {
"method": "deleteFile",
"group": "files",
"weight": 219,
"weight": 221,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6328,7 +6560,7 @@
"x-appwrite": {
"method": "getFileDownload",
"group": "files",
"weight": 215,
"weight": 217,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -6406,7 +6638,7 @@
"x-appwrite": {
"method": "getFilePreview",
"group": "files",
"weight": 214,
"weight": 216,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -6634,7 +6866,7 @@
"x-appwrite": {
"method": "getFileView",
"group": "files",
"weight": 216,
"weight": 218,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -6719,7 +6951,7 @@
"x-appwrite": {
"method": "list",
"group": "teams",
"weight": 223,
"weight": 225,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6795,7 +7027,7 @@
"x-appwrite": {
"method": "create",
"group": "teams",
"weight": 222,
"weight": 224,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6880,7 +7112,7 @@
"x-appwrite": {
"method": "get",
"group": "teams",
"weight": 224,
"weight": 226,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6942,7 +7174,7 @@
"x-appwrite": {
"method": "updateName",
"group": "teams",
"weight": 226,
"weight": 228,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7016,7 +7248,7 @@
"x-appwrite": {
"method": "delete",
"group": "teams",
"weight": 228,
"weight": 230,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7080,7 +7312,7 @@
"x-appwrite": {
"method": "listMemberships",
"group": "memberships",
"weight": 230,
"weight": 232,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7166,7 +7398,7 @@
"x-appwrite": {
"method": "createMembership",
"group": "memberships",
"weight": 229,
"weight": 231,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7277,7 +7509,7 @@
"x-appwrite": {
"method": "getMembership",
"group": "memberships",
"weight": 231,
"weight": 233,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7349,7 +7581,7 @@
"x-appwrite": {
"method": "updateMembership",
"group": "memberships",
"weight": 232,
"weight": 234,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7436,7 +7668,7 @@
"x-appwrite": {
"method": "deleteMembership",
"group": "memberships",
"weight": 234,
"weight": 236,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7510,7 +7742,7 @@
"x-appwrite": {
"method": "updateMembershipStatus",
"group": "memberships",
"weight": 233,
"weight": 235,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7608,7 +7840,7 @@
"x-appwrite": {
"method": "getPrefs",
"group": "teams",
"weight": 225,
"weight": 227,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7669,7 +7901,7 @@
"x-appwrite": {
"method": "updatePrefs",
"group": "teams",
"weight": 227,
"weight": 229,
"cookies": false,
"type": "",
"deprecated": false,
@@ -8183,6 +8415,12 @@
"description": "Document ID.",
"x-example": "5e5ea5c16897e"
},
"$sequence": {
"type": "integer",
"description": "Document automatically incrementing ID.",
"x-example": 1,
"format": "int32"
},
"$collectionId": {
"type": "string",
"description": "Collection ID.",
@@ -8217,6 +8455,7 @@
"additionalProperties": true,
"required": [
"$id",
"$sequence",
"$collectionId",
"$databaseId",
"$createdAt",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -5206,7 +5206,7 @@
"x-appwrite": {
"method": "listExecutions",
"group": "executions",
"weight": 394,
"weight": 393,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5281,7 +5281,7 @@
"x-appwrite": {
"method": "createExecution",
"group": "executions",
"weight": 392,
"weight": 391,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5396,7 +5396,7 @@
"x-appwrite": {
"method": "getExecution",
"group": "executions",
"weight": 393,
"weight": 392,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5470,7 +5470,7 @@
"x-appwrite": {
"method": "query",
"group": "graphql",
"weight": 308,
"weight": 307,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -5522,7 +5522,7 @@
"x-appwrite": {
"method": "mutation",
"group": "graphql",
"weight": 307,
"weight": 306,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -5990,7 +5990,7 @@
"x-appwrite": {
"method": "createSubscriber",
"group": "subscribers",
"weight": 354,
"weight": 353,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6073,7 +6073,7 @@
"x-appwrite": {
"method": "deleteSubscriber",
"group": "subscribers",
"weight": 358,
"weight": 357,
"cookies": false,
"type": "",
"deprecated": false,
File diff suppressed because it is too large Load Diff
+106 -106
View File
@@ -7632,12 +7632,12 @@
}
},
"put": {
"summary": "Create or update documents",
"summary": "Upsert documents",
"operationId": "databasesUpsertDocuments",
"tags": [
"databases"
],
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n",
"responses": {
"200": {
"description": "Documents List",
@@ -8927,7 +8927,7 @@
"x-appwrite": {
"method": "list",
"group": "functions",
"weight": 378,
"weight": 377,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9001,7 +9001,7 @@
"x-appwrite": {
"method": "create",
"group": "functions",
"weight": 375,
"weight": 374,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9235,7 +9235,7 @@
"x-appwrite": {
"method": "listRuntimes",
"group": "runtimes",
"weight": 380,
"weight": 379,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9285,7 +9285,7 @@
"x-appwrite": {
"method": "listSpecifications",
"group": "runtimes",
"weight": 381,
"weight": 380,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9336,7 +9336,7 @@
"x-appwrite": {
"method": "get",
"group": "functions",
"weight": 376,
"weight": 375,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9396,7 +9396,7 @@
"x-appwrite": {
"method": "update",
"group": "functions",
"weight": 377,
"weight": 376,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9627,7 +9627,7 @@
"x-appwrite": {
"method": "delete",
"group": "functions",
"weight": 379,
"weight": 378,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9689,7 +9689,7 @@
"x-appwrite": {
"method": "updateFunctionDeployment",
"group": "functions",
"weight": 384,
"weight": 383,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9770,7 +9770,7 @@
"x-appwrite": {
"method": "listDeployments",
"group": "deployments",
"weight": 385,
"weight": 384,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9854,7 +9854,7 @@
"x-appwrite": {
"method": "createDeployment",
"group": "deployments",
"weight": 382,
"weight": 381,
"cookies": false,
"type": "upload",
"deprecated": false,
@@ -9951,7 +9951,7 @@
"x-appwrite": {
"method": "createDuplicateDeployment",
"group": "deployments",
"weight": 390,
"weight": 389,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10037,7 +10037,7 @@
"x-appwrite": {
"method": "createTemplateDeployment",
"group": "deployments",
"weight": 387,
"weight": 386,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10141,7 +10141,7 @@
"x-appwrite": {
"method": "createVcsDeployment",
"group": "deployments",
"weight": 388,
"weight": 387,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10239,7 +10239,7 @@
"x-appwrite": {
"method": "getDeployment",
"group": "deployments",
"weight": 383,
"weight": 382,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10302,7 +10302,7 @@
"x-appwrite": {
"method": "deleteDeployment",
"group": "deployments",
"weight": 386,
"weight": 385,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10367,7 +10367,7 @@
"x-appwrite": {
"method": "getDeploymentDownload",
"group": "deployments",
"weight": 389,
"weight": 388,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -10458,7 +10458,7 @@
"x-appwrite": {
"method": "updateDeploymentStatus",
"group": "deployments",
"weight": 391,
"weight": 390,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10530,7 +10530,7 @@
"x-appwrite": {
"method": "listExecutions",
"group": "executions",
"weight": 394,
"weight": 393,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10607,7 +10607,7 @@
"x-appwrite": {
"method": "createExecution",
"group": "executions",
"weight": 392,
"weight": 391,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10724,7 +10724,7 @@
"x-appwrite": {
"method": "getExecution",
"group": "executions",
"weight": 393,
"weight": 392,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10791,7 +10791,7 @@
"x-appwrite": {
"method": "deleteExecution",
"group": "executions",
"weight": 395,
"weight": 394,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10863,7 +10863,7 @@
"x-appwrite": {
"method": "listVariables",
"group": "variables",
"weight": 400,
"weight": 399,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10923,7 +10923,7 @@
"x-appwrite": {
"method": "createVariable",
"group": "variables",
"weight": 398,
"weight": 397,
"cookies": false,
"type": "",
"deprecated": false,
@@ -11015,7 +11015,7 @@
"x-appwrite": {
"method": "getVariable",
"group": "variables",
"weight": 399,
"weight": 398,
"cookies": false,
"type": "",
"deprecated": false,
@@ -11085,7 +11085,7 @@
"x-appwrite": {
"method": "updateVariable",
"group": "variables",
"weight": 401,
"weight": 400,
"cookies": false,
"type": "",
"deprecated": false,
@@ -11177,7 +11177,7 @@
"x-appwrite": {
"method": "deleteVariable",
"group": "variables",
"weight": 402,
"weight": 401,
"cookies": false,
"type": "",
"deprecated": false,
@@ -11249,7 +11249,7 @@
"x-appwrite": {
"method": "query",
"group": "graphql",
"weight": 308,
"weight": 307,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -11303,7 +11303,7 @@
"x-appwrite": {
"method": "mutation",
"group": "graphql",
"weight": 307,
"weight": 306,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -13106,7 +13106,7 @@
"x-appwrite": {
"method": "listMessages",
"group": "messages",
"weight": 362,
"weight": 361,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13183,7 +13183,7 @@
"x-appwrite": {
"method": "createEmail",
"group": "messages",
"weight": 359,
"weight": 358,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13328,7 +13328,7 @@
"x-appwrite": {
"method": "updateEmail",
"group": "messages",
"weight": 366,
"weight": 365,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13475,7 +13475,7 @@
"x-appwrite": {
"method": "createPush",
"group": "messages",
"weight": 361,
"weight": 360,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13650,7 +13650,7 @@
"x-appwrite": {
"method": "updatePush",
"group": "messages",
"weight": 368,
"weight": 367,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13829,7 +13829,7 @@
"x-appwrite": {
"method": "createSms",
"group": "messages",
"weight": 360,
"weight": 359,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13939,7 +13939,7 @@
"x-appwrite": {
"method": "updateSms",
"group": "messages",
"weight": 367,
"weight": 366,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14052,7 +14052,7 @@
"x-appwrite": {
"method": "getMessage",
"group": "messages",
"weight": 365,
"weight": 364,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14106,7 +14106,7 @@
"x-appwrite": {
"method": "delete",
"group": "messages",
"weight": 369,
"weight": 368,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14169,7 +14169,7 @@
"x-appwrite": {
"method": "listMessageLogs",
"group": "logs",
"weight": 363,
"weight": 362,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14245,7 +14245,7 @@
"x-appwrite": {
"method": "listTargets",
"group": "messages",
"weight": 364,
"weight": 363,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14321,7 +14321,7 @@
"x-appwrite": {
"method": "listProviders",
"group": "providers",
"weight": 334,
"weight": 333,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14398,7 +14398,7 @@
"x-appwrite": {
"method": "createApnsProvider",
"group": "providers",
"weight": 333,
"weight": 332,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14504,7 +14504,7 @@
"x-appwrite": {
"method": "updateApnsProvider",
"group": "providers",
"weight": 346,
"weight": 345,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14613,7 +14613,7 @@
"x-appwrite": {
"method": "createFcmProvider",
"group": "providers",
"weight": 332,
"weight": 331,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14699,7 +14699,7 @@
"x-appwrite": {
"method": "updateFcmProvider",
"group": "providers",
"weight": 345,
"weight": 344,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14788,7 +14788,7 @@
"x-appwrite": {
"method": "createMailgunProvider",
"group": "providers",
"weight": 324,
"weight": 323,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14904,7 +14904,7 @@
"x-appwrite": {
"method": "updateMailgunProvider",
"group": "providers",
"weight": 337,
"weight": 336,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15023,7 +15023,7 @@
"x-appwrite": {
"method": "createMsg91Provider",
"group": "providers",
"weight": 327,
"weight": 326,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15119,7 +15119,7 @@
"x-appwrite": {
"method": "updateMsg91Provider",
"group": "providers",
"weight": 340,
"weight": 339,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15218,7 +15218,7 @@
"x-appwrite": {
"method": "createSendgridProvider",
"group": "providers",
"weight": 325,
"weight": 324,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15324,7 +15324,7 @@
"x-appwrite": {
"method": "updateSendgridProvider",
"group": "providers",
"weight": 338,
"weight": 337,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15433,7 +15433,7 @@
"x-appwrite": {
"method": "createSmtpProvider",
"group": "providers",
"weight": 326,
"weight": 325,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15577,7 +15577,7 @@
"x-appwrite": {
"method": "updateSmtpProvider",
"group": "providers",
"weight": 339,
"weight": 338,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15723,7 +15723,7 @@
"x-appwrite": {
"method": "createTelesignProvider",
"group": "providers",
"weight": 328,
"weight": 327,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15819,7 +15819,7 @@
"x-appwrite": {
"method": "updateTelesignProvider",
"group": "providers",
"weight": 341,
"weight": 340,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15918,7 +15918,7 @@
"x-appwrite": {
"method": "createTextmagicProvider",
"group": "providers",
"weight": 329,
"weight": 328,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16014,7 +16014,7 @@
"x-appwrite": {
"method": "updateTextmagicProvider",
"group": "providers",
"weight": 342,
"weight": 341,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16113,7 +16113,7 @@
"x-appwrite": {
"method": "createTwilioProvider",
"group": "providers",
"weight": 330,
"weight": 329,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16209,7 +16209,7 @@
"x-appwrite": {
"method": "updateTwilioProvider",
"group": "providers",
"weight": 343,
"weight": 342,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16308,7 +16308,7 @@
"x-appwrite": {
"method": "createVonageProvider",
"group": "providers",
"weight": 331,
"weight": 330,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16404,7 +16404,7 @@
"x-appwrite": {
"method": "updateVonageProvider",
"group": "providers",
"weight": 344,
"weight": 343,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16503,7 +16503,7 @@
"x-appwrite": {
"method": "getProvider",
"group": "providers",
"weight": 336,
"weight": 335,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16557,7 +16557,7 @@
"x-appwrite": {
"method": "deleteProvider",
"group": "providers",
"weight": 347,
"weight": 346,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16620,7 +16620,7 @@
"x-appwrite": {
"method": "listProviderLogs",
"group": "providers",
"weight": 335,
"weight": 334,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16696,7 +16696,7 @@
"x-appwrite": {
"method": "listSubscriberLogs",
"group": "subscribers",
"weight": 356,
"weight": 355,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16772,7 +16772,7 @@
"x-appwrite": {
"method": "listTopics",
"group": "topics",
"weight": 349,
"weight": 348,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16847,7 +16847,7 @@
"x-appwrite": {
"method": "createTopic",
"group": "topics",
"weight": 348,
"weight": 347,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16931,7 +16931,7 @@
"x-appwrite": {
"method": "getTopic",
"group": "topics",
"weight": 351,
"weight": 350,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16992,7 +16992,7 @@
"x-appwrite": {
"method": "updateTopic",
"group": "topics",
"weight": 352,
"weight": 351,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17070,7 +17070,7 @@
"x-appwrite": {
"method": "deleteTopic",
"group": "topics",
"weight": 353,
"weight": 352,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17133,7 +17133,7 @@
"x-appwrite": {
"method": "listTopicLogs",
"group": "topics",
"weight": 350,
"weight": 349,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17209,7 +17209,7 @@
"x-appwrite": {
"method": "listSubscribers",
"group": "subscribers",
"weight": 355,
"weight": 354,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17294,7 +17294,7 @@
"x-appwrite": {
"method": "createSubscriber",
"group": "subscribers",
"weight": 354,
"weight": 353,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17386,7 +17386,7 @@
"x-appwrite": {
"method": "getSubscriber",
"group": "subscribers",
"weight": 357,
"weight": 356,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17450,7 +17450,7 @@
"x-appwrite": {
"method": "deleteSubscriber",
"group": "subscribers",
"weight": 358,
"weight": 357,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17527,7 +17527,7 @@
"x-appwrite": {
"method": "list",
"group": "sites",
"weight": 407,
"weight": 406,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17598,7 +17598,7 @@
"x-appwrite": {
"method": "create",
"group": "sites",
"weight": 405,
"weight": 404,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17848,7 +17848,7 @@
"x-appwrite": {
"method": "listFrameworks",
"group": "frameworks",
"weight": 410,
"weight": 409,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17898,7 +17898,7 @@
"x-appwrite": {
"method": "listSpecifications",
"group": "frameworks",
"weight": 433,
"weight": 432,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17949,7 +17949,7 @@
"x-appwrite": {
"method": "get",
"group": "sites",
"weight": 406,
"weight": 405,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18009,7 +18009,7 @@
"x-appwrite": {
"method": "update",
"group": "sites",
"weight": 408,
"weight": 407,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18255,7 +18255,7 @@
"x-appwrite": {
"method": "delete",
"group": "sites",
"weight": 409,
"weight": 408,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18317,7 +18317,7 @@
"x-appwrite": {
"method": "updateSiteDeployment",
"group": "sites",
"weight": 416,
"weight": 415,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18398,7 +18398,7 @@
"x-appwrite": {
"method": "listDeployments",
"group": "deployments",
"weight": 415,
"weight": 414,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18482,7 +18482,7 @@
"x-appwrite": {
"method": "createDeployment",
"group": "deployments",
"weight": 411,
"weight": 410,
"cookies": false,
"type": "upload",
"deprecated": false,
@@ -18584,7 +18584,7 @@
"x-appwrite": {
"method": "createDuplicateDeployment",
"group": "deployments",
"weight": 419,
"weight": 418,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18665,7 +18665,7 @@
"x-appwrite": {
"method": "createTemplateDeployment",
"group": "deployments",
"weight": 412,
"weight": 411,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18769,7 +18769,7 @@
"x-appwrite": {
"method": "createVcsDeployment",
"group": "deployments",
"weight": 413,
"weight": 412,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18868,7 +18868,7 @@
"x-appwrite": {
"method": "getDeployment",
"group": "deployments",
"weight": 414,
"weight": 413,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18931,7 +18931,7 @@
"x-appwrite": {
"method": "deleteDeployment",
"group": "deployments",
"weight": 417,
"weight": 416,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18996,7 +18996,7 @@
"x-appwrite": {
"method": "getDeploymentDownload",
"group": "deployments",
"weight": 418,
"weight": 417,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -19087,7 +19087,7 @@
"x-appwrite": {
"method": "updateDeploymentStatus",
"group": "deployments",
"weight": 420,
"weight": 419,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19159,7 +19159,7 @@
"x-appwrite": {
"method": "listLogs",
"group": "logs",
"weight": 422,
"weight": 421,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19231,7 +19231,7 @@
"x-appwrite": {
"method": "getLog",
"group": "logs",
"weight": 421,
"weight": 420,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19294,7 +19294,7 @@
"x-appwrite": {
"method": "deleteLog",
"group": "logs",
"weight": 423,
"weight": 422,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19366,7 +19366,7 @@
"x-appwrite": {
"method": "listVariables",
"group": "variables",
"weight": 426,
"weight": 425,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19426,7 +19426,7 @@
"x-appwrite": {
"method": "createVariable",
"group": "variables",
"weight": 424,
"weight": 423,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19518,7 +19518,7 @@
"x-appwrite": {
"method": "getVariable",
"group": "variables",
"weight": 425,
"weight": 424,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19588,7 +19588,7 @@
"x-appwrite": {
"method": "updateVariable",
"group": "variables",
"weight": 427,
"weight": 426,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19680,7 +19680,7 @@
"x-appwrite": {
"method": "deleteVariable",
"group": "variables",
"weight": 428,
"weight": 427,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22075,7 +22075,7 @@
"x-appwrite": {
"method": "list",
"group": "files",
"weight": 441,
"weight": 440,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22156,7 +22156,7 @@
"x-appwrite": {
"method": "createFileToken",
"group": "files",
"weight": 439,
"weight": 438,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22246,7 +22246,7 @@
"x-appwrite": {
"method": "get",
"group": "tokens",
"weight": 440,
"weight": 439,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22307,7 +22307,7 @@
"x-appwrite": {
"method": "update",
"group": "tokens",
"weight": 442,
"weight": 441,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22378,7 +22378,7 @@
"x-appwrite": {
"method": "delete",
"group": "tokens",
"weight": 443,
"weight": 442,
"cookies": false,
"type": "",
"deprecated": false,
+266 -87
View File
@@ -3451,7 +3451,6 @@
"scope": "avatars.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -3576,7 +3575,6 @@
"scope": "avatars.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -3707,7 +3705,6 @@
"scope": "avatars.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -3770,7 +3767,6 @@
"scope": "avatars.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -4257,7 +4253,6 @@
"scope": "avatars.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -4340,7 +4335,6 @@
"scope": "avatars.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -4431,7 +4425,6 @@
"scope": "avatars.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -4522,7 +4515,6 @@
"scope": "documents.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -4603,8 +4595,8 @@
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
"scope": "documents.write",
"platforms": [
"console",
"client",
"server",
"server"
],
"packaging": false,
@@ -4612,6 +4604,7 @@
{
"name": "createDocument",
"auth": {
"Admin": [],
"Session": [],
"Key": [],
"JWT": []
@@ -4743,7 +4736,6 @@
"scope": "documents.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -4833,7 +4825,6 @@
"scope": "documents.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -4938,7 +4929,6 @@
"scope": "documents.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5023,7 +5013,7 @@
"x-appwrite": {
"method": "deleteDocument",
"group": "documents",
"weight": 117,
"weight": 119,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5035,7 +5025,6 @@
"scope": "documents.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5078,6 +5067,222 @@
]
}
},
"\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}\/{attribute}\/decrement": {
"patch": {
"summary": "Decrement document attribute",
"operationId": "databasesDecrementDocumentAttribute",
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"tags": [
"databases"
],
"description": "Decrement a specific attribute of a document by a given value.",
"responses": {
"200": {
"description": "Document",
"schema": {
"$ref": "#\/definitions\/document"
}
}
},
"x-appwrite": {
"method": "decrementDocumentAttribute",
"group": "documents",
"weight": 116,
"cookies": false,
"type": "",
"deprecated": false,
"demo": "databases\/decrement-document-attribute.md",
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-document-attribute.md",
"rate-limit": 120,
"rate-time": 60,
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
"scope": "documents.write",
"platforms": [
"console",
"server",
"client"
],
"packaging": false,
"auth": {
"Project": []
}
},
"security": [
{
"Project": [],
"Session": [],
"JWT": []
}
],
"parameters": [
{
"name": "databaseId",
"description": "Database ID.",
"required": true,
"type": "string",
"x-example": "<DATABASE_ID>",
"in": "path"
},
{
"name": "collectionId",
"description": "Collection ID.",
"required": true,
"type": "string",
"x-example": "<COLLECTION_ID>",
"in": "path"
},
{
"name": "documentId",
"description": "Document ID.",
"required": true,
"type": "string",
"x-example": "<DOCUMENT_ID>",
"in": "path"
},
{
"name": "attribute",
"description": "Attribute key.",
"required": true,
"type": "string",
"in": "path"
},
{
"name": "payload",
"in": "body",
"schema": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "Value to decrement the attribute by. The value must be a number.",
"default": 1,
"x-example": null
},
"min": {
"type": "number",
"description": "Minimum value for the attribute. If the current value is lesser than this value, an exception will be thrown.",
"default": null,
"x-example": null
}
}
}
}
]
}
},
"\/databases\/{databaseId}\/collections\/{collectionId}\/documents\/{documentId}\/{attribute}\/increment": {
"patch": {
"summary": "Increment document attribute",
"operationId": "databasesIncrementDocumentAttribute",
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"tags": [
"databases"
],
"description": "Increment a specific attribute of a document by a given value.",
"responses": {
"200": {
"description": "Document",
"schema": {
"$ref": "#\/definitions\/document"
}
}
},
"x-appwrite": {
"method": "incrementDocumentAttribute",
"group": "documents",
"weight": 115,
"cookies": false,
"type": "",
"deprecated": false,
"demo": "databases\/increment-document-attribute.md",
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-document-attribute.md",
"rate-limit": 120,
"rate-time": 60,
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
"scope": "documents.write",
"platforms": [
"console",
"server",
"client"
],
"packaging": false,
"auth": {
"Project": []
}
},
"security": [
{
"Project": [],
"Session": [],
"JWT": []
}
],
"parameters": [
{
"name": "databaseId",
"description": "Database ID.",
"required": true,
"type": "string",
"x-example": "<DATABASE_ID>",
"in": "path"
},
{
"name": "collectionId",
"description": "Collection ID.",
"required": true,
"type": "string",
"x-example": "<COLLECTION_ID>",
"in": "path"
},
{
"name": "documentId",
"description": "Document ID.",
"required": true,
"type": "string",
"x-example": "<DOCUMENT_ID>",
"in": "path"
},
{
"name": "attribute",
"description": "Attribute key.",
"required": true,
"type": "string",
"in": "path"
},
{
"name": "payload",
"in": "body",
"schema": {
"type": "object",
"properties": {
"value": {
"type": "number",
"description": "Value to increment the attribute by. The value must be a number.",
"default": 1,
"x-example": null
},
"max": {
"type": "number",
"description": "Maximum value for the attribute. If the current value is greater than this value, an error will be thrown.",
"default": null,
"x-example": null
}
}
}
}
]
}
},
"\/functions\/{functionId}\/executions": {
"get": {
"summary": "List executions",
@@ -5101,7 +5306,7 @@
"x-appwrite": {
"method": "listExecutions",
"group": "executions",
"weight": 392,
"weight": 393,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5113,7 +5318,6 @@
"scope": "execution.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5175,7 +5379,7 @@
"x-appwrite": {
"method": "createExecution",
"group": "executions",
"weight": 390,
"weight": 391,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5187,7 +5391,6 @@
"scope": "execution.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5292,7 +5495,7 @@
"x-appwrite": {
"method": "getExecution",
"group": "executions",
"weight": 391,
"weight": 392,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5304,7 +5507,6 @@
"scope": "execution.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5364,7 +5566,7 @@
"x-appwrite": {
"method": "query",
"group": "graphql",
"weight": 306,
"weight": 307,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -5376,8 +5578,7 @@
"scope": "graphql",
"platforms": [
"server",
"client",
"server"
"client"
],
"packaging": false,
"auth": {
@@ -5438,7 +5639,7 @@
"x-appwrite": {
"method": "mutation",
"group": "graphql",
"weight": 305,
"weight": 306,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -5450,8 +5651,7 @@
"scope": "graphql",
"platforms": [
"server",
"client",
"server"
"client"
],
"packaging": false,
"auth": {
@@ -5510,7 +5710,7 @@
"x-appwrite": {
"method": "get",
"group": null,
"weight": 122,
"weight": 124,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5522,7 +5722,6 @@
"scope": "locale.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5562,7 +5761,7 @@
"x-appwrite": {
"method": "listCodes",
"group": null,
"weight": 123,
"weight": 125,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5574,7 +5773,6 @@
"scope": "locale.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5614,7 +5812,7 @@
"x-appwrite": {
"method": "listContinents",
"group": null,
"weight": 127,
"weight": 129,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5626,7 +5824,6 @@
"scope": "locale.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5666,7 +5863,7 @@
"x-appwrite": {
"method": "listCountries",
"group": null,
"weight": 124,
"weight": 126,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5678,7 +5875,6 @@
"scope": "locale.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5718,7 +5914,7 @@
"x-appwrite": {
"method": "listCountriesEU",
"group": null,
"weight": 125,
"weight": 127,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5730,7 +5926,6 @@
"scope": "locale.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5770,7 +5965,7 @@
"x-appwrite": {
"method": "listCountriesPhones",
"group": null,
"weight": 126,
"weight": 128,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5782,7 +5977,6 @@
"scope": "locale.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5822,7 +6016,7 @@
"x-appwrite": {
"method": "listCurrencies",
"group": null,
"weight": 128,
"weight": 130,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5834,7 +6028,6 @@
"scope": "locale.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5874,7 +6067,7 @@
"x-appwrite": {
"method": "listLanguages",
"group": null,
"weight": 129,
"weight": 131,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5886,7 +6079,6 @@
"scope": "locale.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -5928,7 +6120,7 @@
"x-appwrite": {
"method": "createSubscriber",
"group": "subscribers",
"weight": 352,
"weight": 353,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5941,8 +6133,7 @@
"platforms": [
"server",
"client",
"console",
"server"
"console"
],
"packaging": false,
"auth": {
@@ -6013,7 +6204,7 @@
"x-appwrite": {
"method": "deleteSubscriber",
"group": "subscribers",
"weight": 356,
"weight": 357,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6026,8 +6217,7 @@
"platforms": [
"server",
"client",
"console",
"server"
"console"
],
"packaging": false,
"auth": {
@@ -6084,7 +6274,7 @@
"x-appwrite": {
"method": "listFiles",
"group": "files",
"weight": 212,
"weight": 214,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6096,7 +6286,6 @@
"scope": "files.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6167,7 +6356,7 @@
"x-appwrite": {
"method": "createFile",
"group": "files",
"weight": 211,
"weight": 213,
"cookies": false,
"type": "upload",
"deprecated": false,
@@ -6179,7 +6368,6 @@
"scope": "files.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6257,7 +6445,7 @@
"x-appwrite": {
"method": "getFile",
"group": "files",
"weight": 213,
"weight": 215,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6269,7 +6457,6 @@
"scope": "files.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6327,7 +6514,7 @@
"x-appwrite": {
"method": "updateFile",
"group": "files",
"weight": 218,
"weight": 220,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6339,7 +6526,6 @@
"scope": "files.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6416,7 +6602,7 @@
"x-appwrite": {
"method": "deleteFile",
"group": "files",
"weight": 219,
"weight": 221,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6428,7 +6614,6 @@
"scope": "files.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6486,7 +6671,7 @@
"x-appwrite": {
"method": "getFileDownload",
"group": "files",
"weight": 215,
"weight": 217,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -6498,7 +6683,6 @@
"scope": "files.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6565,7 +6749,7 @@
"x-appwrite": {
"method": "getFilePreview",
"group": "files",
"weight": 214,
"weight": 216,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -6577,7 +6761,6 @@
"scope": "files.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6772,7 +6955,7 @@
"x-appwrite": {
"method": "getFileView",
"group": "files",
"weight": 216,
"weight": 218,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -6784,7 +6967,6 @@
"scope": "files.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6851,7 +7033,7 @@
"x-appwrite": {
"method": "list",
"group": "teams",
"weight": 223,
"weight": 225,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6863,7 +7045,6 @@
"scope": "teams.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -6926,7 +7107,7 @@
"x-appwrite": {
"method": "create",
"group": "teams",
"weight": 222,
"weight": 224,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6938,7 +7119,6 @@
"scope": "teams.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7016,7 +7196,7 @@
"x-appwrite": {
"method": "get",
"group": "teams",
"weight": 224,
"weight": 226,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7028,7 +7208,6 @@
"scope": "teams.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7078,7 +7257,7 @@
"x-appwrite": {
"method": "updateName",
"group": "teams",
"weight": 226,
"weight": 228,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7090,7 +7269,6 @@
"scope": "teams.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7153,7 +7331,7 @@
"x-appwrite": {
"method": "delete",
"group": "teams",
"weight": 228,
"weight": 230,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7165,7 +7343,6 @@
"scope": "teams.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7215,7 +7392,7 @@
"x-appwrite": {
"method": "listMemberships",
"group": "memberships",
"weight": 230,
"weight": 232,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7227,7 +7404,6 @@
"scope": "teams.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7298,7 +7474,7 @@
"x-appwrite": {
"method": "createMembership",
"group": "memberships",
"weight": 229,
"weight": 231,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7310,7 +7486,6 @@
"scope": "teams.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7411,7 +7586,7 @@
"x-appwrite": {
"method": "getMembership",
"group": "memberships",
"weight": 231,
"weight": 233,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7423,7 +7598,6 @@
"scope": "teams.read",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7481,7 +7655,7 @@
"x-appwrite": {
"method": "updateMembership",
"group": "memberships",
"weight": 232,
"weight": 234,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7493,7 +7667,6 @@
"scope": "teams.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7567,7 +7740,7 @@
"x-appwrite": {
"method": "deleteMembership",
"group": "memberships",
"weight": 234,
"weight": 236,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7579,7 +7752,6 @@
"scope": "teams.write",
"platforms": [
"client",
"server",
"server"
],
"packaging": false,
@@ -7639,7 +7811,7 @@
"x-appwrite": {
"method": "updateMembershipStatus",
"group": "memberships",
"weight": 233,
"weight": 235,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7733,7 +7905,7 @@
"x-appwrite": {
"method": "getPrefs",
"group": "teams",
"weight": 225,
"weight": 227,
"cookies": false,
"type": "",
"deprecated": false,
@@ -7794,7 +7966,7 @@
"x-appwrite": {
"method": "updatePrefs",
"group": "teams",
"weight": 227,
"weight": 229,
"cookies": false,
"type": "",
"deprecated": false,
@@ -8286,6 +8458,12 @@
"description": "Document ID.",
"x-example": "5e5ea5c16897e"
},
"$sequence": {
"type": "integer",
"description": "Document automatically incrementing ID.",
"x-example": 1,
"format": "int32"
},
"$collectionId": {
"type": "string",
"description": "Collection ID.",
@@ -8320,6 +8498,7 @@
"additionalProperties": true,
"required": [
"$id",
"$sequence",
"$collectionId",
"$databaseId",
"$createdAt",
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+9 -11
View File
@@ -5105,8 +5105,7 @@
"platforms": [
"console",
"server",
"client",
"server"
"client"
],
"packaging": false,
"auth": {
@@ -5214,8 +5213,7 @@
"platforms": [
"console",
"server",
"client",
"server"
"client"
],
"packaging": false,
"auth": {
@@ -5308,7 +5306,7 @@
"x-appwrite": {
"method": "listExecutions",
"group": "executions",
"weight": 394,
"weight": 393,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5381,7 +5379,7 @@
"x-appwrite": {
"method": "createExecution",
"group": "executions",
"weight": 392,
"weight": 391,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5497,7 +5495,7 @@
"x-appwrite": {
"method": "getExecution",
"group": "executions",
"weight": 393,
"weight": 392,
"cookies": false,
"type": "",
"deprecated": false,
@@ -5568,7 +5566,7 @@
"x-appwrite": {
"method": "query",
"group": "graphql",
"weight": 308,
"weight": 307,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -5641,7 +5639,7 @@
"x-appwrite": {
"method": "mutation",
"group": "graphql",
"weight": 307,
"weight": 306,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -6122,7 +6120,7 @@
"x-appwrite": {
"method": "createSubscriber",
"group": "subscribers",
"weight": 354,
"weight": 353,
"cookies": false,
"type": "",
"deprecated": false,
@@ -6206,7 +6204,7 @@
"x-appwrite": {
"method": "deleteSubscriber",
"group": "subscribers",
"weight": 358,
"weight": 357,
"cookies": false,
"type": "",
"deprecated": false,
File diff suppressed because it is too large Load Diff
+108 -110
View File
@@ -7740,7 +7740,7 @@
]
},
"put": {
"summary": "Create or update documents",
"summary": "Upsert documents",
"operationId": "databasesUpsertDocuments",
"consumes": [
"application\/json"
@@ -7751,7 +7751,7 @@
"tags": [
"databases"
],
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update Documents. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.\n",
"responses": {
"200": {
"description": "Documents List",
@@ -8422,8 +8422,7 @@
"platforms": [
"console",
"server",
"client",
"server"
"client"
],
"packaging": false,
"auth": {
@@ -8533,8 +8532,7 @@
"platforms": [
"console",
"server",
"client",
"server"
"client"
],
"packaging": false,
"auth": {
@@ -8982,7 +8980,7 @@
"x-appwrite": {
"method": "list",
"group": "functions",
"weight": 378,
"weight": 377,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9055,7 +9053,7 @@
"x-appwrite": {
"method": "create",
"group": "functions",
"weight": 375,
"weight": 374,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9307,7 +9305,7 @@
"x-appwrite": {
"method": "listRuntimes",
"group": "runtimes",
"weight": 380,
"weight": 379,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9357,7 +9355,7 @@
"x-appwrite": {
"method": "listSpecifications",
"group": "runtimes",
"weight": 381,
"weight": 380,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9408,7 +9406,7 @@
"x-appwrite": {
"method": "get",
"group": "functions",
"weight": 376,
"weight": 375,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9468,7 +9466,7 @@
"x-appwrite": {
"method": "update",
"group": "functions",
"weight": 377,
"weight": 376,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9716,7 +9714,7 @@
"x-appwrite": {
"method": "delete",
"group": "functions",
"weight": 379,
"weight": 378,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9778,7 +9776,7 @@
"x-appwrite": {
"method": "updateFunctionDeployment",
"group": "functions",
"weight": 384,
"weight": 383,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9856,7 +9854,7 @@
"x-appwrite": {
"method": "listDeployments",
"group": "deployments",
"weight": 385,
"weight": 384,
"cookies": false,
"type": "",
"deprecated": false,
@@ -9937,7 +9935,7 @@
"x-appwrite": {
"method": "createDeployment",
"group": "deployments",
"weight": 382,
"weight": 381,
"cookies": false,
"type": "upload",
"deprecated": false,
@@ -10030,7 +10028,7 @@
"x-appwrite": {
"method": "createDuplicateDeployment",
"group": "deployments",
"weight": 390,
"weight": 389,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10116,7 +10114,7 @@
"x-appwrite": {
"method": "createTemplateDeployment",
"group": "deployments",
"weight": 387,
"weight": 386,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10223,7 +10221,7 @@
"x-appwrite": {
"method": "createVcsDeployment",
"group": "deployments",
"weight": 388,
"weight": 387,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10320,7 +10318,7 @@
"x-appwrite": {
"method": "getDeployment",
"group": "deployments",
"weight": 383,
"weight": 382,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10383,7 +10381,7 @@
"x-appwrite": {
"method": "deleteDeployment",
"group": "deployments",
"weight": 386,
"weight": 385,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10451,7 +10449,7 @@
"x-appwrite": {
"method": "getDeploymentDownload",
"group": "deployments",
"weight": 389,
"weight": 388,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -10537,7 +10535,7 @@
"x-appwrite": {
"method": "updateDeploymentStatus",
"group": "deployments",
"weight": 391,
"weight": 390,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10605,7 +10603,7 @@
"x-appwrite": {
"method": "listExecutions",
"group": "executions",
"weight": 394,
"weight": 393,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10680,7 +10678,7 @@
"x-appwrite": {
"method": "createExecution",
"group": "executions",
"weight": 392,
"weight": 391,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10798,7 +10796,7 @@
"x-appwrite": {
"method": "getExecution",
"group": "executions",
"weight": 393,
"weight": 392,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10864,7 +10862,7 @@
"x-appwrite": {
"method": "deleteExecution",
"group": "executions",
"weight": 395,
"weight": 394,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10932,7 +10930,7 @@
"x-appwrite": {
"method": "listVariables",
"group": "variables",
"weight": 400,
"weight": 399,
"cookies": false,
"type": "",
"deprecated": false,
@@ -10992,7 +10990,7 @@
"x-appwrite": {
"method": "createVariable",
"group": "variables",
"weight": 398,
"weight": 397,
"cookies": false,
"type": "",
"deprecated": false,
@@ -11083,7 +11081,7 @@
"x-appwrite": {
"method": "getVariable",
"group": "variables",
"weight": 399,
"weight": 398,
"cookies": false,
"type": "",
"deprecated": false,
@@ -11151,7 +11149,7 @@
"x-appwrite": {
"method": "updateVariable",
"group": "variables",
"weight": 401,
"weight": 400,
"cookies": false,
"type": "",
"deprecated": false,
@@ -11244,7 +11242,7 @@
"x-appwrite": {
"method": "deleteVariable",
"group": "variables",
"weight": 402,
"weight": 401,
"cookies": false,
"type": "",
"deprecated": false,
@@ -11314,7 +11312,7 @@
"x-appwrite": {
"method": "query",
"group": "graphql",
"weight": 308,
"weight": 307,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -11389,7 +11387,7 @@
"x-appwrite": {
"method": "mutation",
"group": "graphql",
"weight": 307,
"weight": 306,
"cookies": false,
"type": "graphql",
"deprecated": false,
@@ -13171,7 +13169,7 @@
"x-appwrite": {
"method": "listMessages",
"group": "messages",
"weight": 362,
"weight": 361,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13247,7 +13245,7 @@
"x-appwrite": {
"method": "createEmail",
"group": "messages",
"weight": 359,
"weight": 358,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13406,7 +13404,7 @@
"x-appwrite": {
"method": "updateEmail",
"group": "messages",
"weight": 366,
"weight": 365,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13562,7 +13560,7 @@
"x-appwrite": {
"method": "createPush",
"group": "messages",
"weight": 361,
"weight": 360,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13758,7 +13756,7 @@
"x-appwrite": {
"method": "updatePush",
"group": "messages",
"weight": 368,
"weight": 367,
"cookies": false,
"type": "",
"deprecated": false,
@@ -13953,7 +13951,7 @@
"x-appwrite": {
"method": "createSms",
"group": "messages",
"weight": 360,
"weight": 359,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14072,7 +14070,7 @@
"x-appwrite": {
"method": "updateSms",
"group": "messages",
"weight": 367,
"weight": 366,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14187,7 +14185,7 @@
"x-appwrite": {
"method": "getMessage",
"group": "messages",
"weight": 365,
"weight": 364,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14243,7 +14241,7 @@
"x-appwrite": {
"method": "delete",
"group": "messages",
"weight": 369,
"weight": 368,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14304,7 +14302,7 @@
"x-appwrite": {
"method": "listMessageLogs",
"group": "logs",
"weight": 363,
"weight": 362,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14377,7 +14375,7 @@
"x-appwrite": {
"method": "listTargets",
"group": "messages",
"weight": 364,
"weight": 363,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14450,7 +14448,7 @@
"x-appwrite": {
"method": "listProviders",
"group": "providers",
"weight": 334,
"weight": 333,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14526,7 +14524,7 @@
"x-appwrite": {
"method": "createApnsProvider",
"group": "providers",
"weight": 333,
"weight": 332,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14642,7 +14640,7 @@
"x-appwrite": {
"method": "updateApnsProvider",
"group": "providers",
"weight": 346,
"weight": 345,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14756,7 +14754,7 @@
"x-appwrite": {
"method": "createFcmProvider",
"group": "providers",
"weight": 332,
"weight": 331,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14848,7 +14846,7 @@
"x-appwrite": {
"method": "updateFcmProvider",
"group": "providers",
"weight": 345,
"weight": 344,
"cookies": false,
"type": "",
"deprecated": false,
@@ -14938,7 +14936,7 @@
"x-appwrite": {
"method": "createMailgunProvider",
"group": "providers",
"weight": 324,
"weight": 323,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15066,7 +15064,7 @@
"x-appwrite": {
"method": "updateMailgunProvider",
"group": "providers",
"weight": 337,
"weight": 336,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15192,7 +15190,7 @@
"x-appwrite": {
"method": "createMsg91Provider",
"group": "providers",
"weight": 327,
"weight": 326,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15296,7 +15294,7 @@
"x-appwrite": {
"method": "updateMsg91Provider",
"group": "providers",
"weight": 340,
"weight": 339,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15398,7 +15396,7 @@
"x-appwrite": {
"method": "createSendgridProvider",
"group": "providers",
"weight": 325,
"weight": 324,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15514,7 +15512,7 @@
"x-appwrite": {
"method": "updateSendgridProvider",
"group": "providers",
"weight": 338,
"weight": 337,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15628,7 +15626,7 @@
"x-appwrite": {
"method": "createSmtpProvider",
"group": "providers",
"weight": 326,
"weight": 325,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15788,7 +15786,7 @@
"x-appwrite": {
"method": "updateSmtpProvider",
"group": "providers",
"weight": 339,
"weight": 338,
"cookies": false,
"type": "",
"deprecated": false,
@@ -15945,7 +15943,7 @@
"x-appwrite": {
"method": "createTelesignProvider",
"group": "providers",
"weight": 328,
"weight": 327,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16049,7 +16047,7 @@
"x-appwrite": {
"method": "updateTelesignProvider",
"group": "providers",
"weight": 341,
"weight": 340,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16151,7 +16149,7 @@
"x-appwrite": {
"method": "createTextmagicProvider",
"group": "providers",
"weight": 329,
"weight": 328,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16255,7 +16253,7 @@
"x-appwrite": {
"method": "updateTextmagicProvider",
"group": "providers",
"weight": 342,
"weight": 341,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16357,7 +16355,7 @@
"x-appwrite": {
"method": "createTwilioProvider",
"group": "providers",
"weight": 330,
"weight": 329,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16461,7 +16459,7 @@
"x-appwrite": {
"method": "updateTwilioProvider",
"group": "providers",
"weight": 343,
"weight": 342,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16563,7 +16561,7 @@
"x-appwrite": {
"method": "createVonageProvider",
"group": "providers",
"weight": 331,
"weight": 330,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16667,7 +16665,7 @@
"x-appwrite": {
"method": "updateVonageProvider",
"group": "providers",
"weight": 344,
"weight": 343,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16767,7 +16765,7 @@
"x-appwrite": {
"method": "getProvider",
"group": "providers",
"weight": 336,
"weight": 335,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16823,7 +16821,7 @@
"x-appwrite": {
"method": "deleteProvider",
"group": "providers",
"weight": 347,
"weight": 346,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16884,7 +16882,7 @@
"x-appwrite": {
"method": "listProviderLogs",
"group": "providers",
"weight": 335,
"weight": 334,
"cookies": false,
"type": "",
"deprecated": false,
@@ -16957,7 +16955,7 @@
"x-appwrite": {
"method": "listSubscriberLogs",
"group": "subscribers",
"weight": 356,
"weight": 355,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17030,7 +17028,7 @@
"x-appwrite": {
"method": "listTopics",
"group": "topics",
"weight": 349,
"weight": 348,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17104,7 +17102,7 @@
"x-appwrite": {
"method": "createTopic",
"group": "topics",
"weight": 348,
"weight": 347,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17193,7 +17191,7 @@
"x-appwrite": {
"method": "getTopic",
"group": "topics",
"weight": 351,
"weight": 350,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17254,7 +17252,7 @@
"x-appwrite": {
"method": "updateTopic",
"group": "topics",
"weight": 352,
"weight": 351,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17334,7 +17332,7 @@
"x-appwrite": {
"method": "deleteTopic",
"group": "topics",
"weight": 353,
"weight": 352,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17395,7 +17393,7 @@
"x-appwrite": {
"method": "listTopicLogs",
"group": "topics",
"weight": 350,
"weight": 349,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17468,7 +17466,7 @@
"x-appwrite": {
"method": "listSubscribers",
"group": "subscribers",
"weight": 355,
"weight": 354,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17550,7 +17548,7 @@
"x-appwrite": {
"method": "createSubscriber",
"group": "subscribers",
"weight": 354,
"weight": 353,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17639,7 +17637,7 @@
"x-appwrite": {
"method": "getSubscriber",
"group": "subscribers",
"weight": 357,
"weight": 356,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17703,7 +17701,7 @@
"x-appwrite": {
"method": "deleteSubscriber",
"group": "subscribers",
"weight": 358,
"weight": 357,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17775,7 +17773,7 @@
"x-appwrite": {
"method": "list",
"group": "sites",
"weight": 407,
"weight": 406,
"cookies": false,
"type": "",
"deprecated": false,
@@ -17848,7 +17846,7 @@
"x-appwrite": {
"method": "create",
"group": "sites",
"weight": 405,
"weight": 404,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18116,7 +18114,7 @@
"x-appwrite": {
"method": "listFrameworks",
"group": "frameworks",
"weight": 410,
"weight": 409,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18166,7 +18164,7 @@
"x-appwrite": {
"method": "listSpecifications",
"group": "frameworks",
"weight": 433,
"weight": 432,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18217,7 +18215,7 @@
"x-appwrite": {
"method": "get",
"group": "sites",
"weight": 406,
"weight": 405,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18277,7 +18275,7 @@
"x-appwrite": {
"method": "update",
"group": "sites",
"weight": 408,
"weight": 407,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18540,7 +18538,7 @@
"x-appwrite": {
"method": "delete",
"group": "sites",
"weight": 409,
"weight": 408,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18602,7 +18600,7 @@
"x-appwrite": {
"method": "updateSiteDeployment",
"group": "sites",
"weight": 416,
"weight": 415,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18680,7 +18678,7 @@
"x-appwrite": {
"method": "listDeployments",
"group": "deployments",
"weight": 415,
"weight": 414,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18761,7 +18759,7 @@
"x-appwrite": {
"method": "createDeployment",
"group": "deployments",
"weight": 411,
"weight": 410,
"cookies": false,
"type": "upload",
"deprecated": false,
@@ -18862,7 +18860,7 @@
"x-appwrite": {
"method": "createDuplicateDeployment",
"group": "deployments",
"weight": 419,
"weight": 418,
"cookies": false,
"type": "",
"deprecated": false,
@@ -18942,7 +18940,7 @@
"x-appwrite": {
"method": "createTemplateDeployment",
"group": "deployments",
"weight": 412,
"weight": 411,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19049,7 +19047,7 @@
"x-appwrite": {
"method": "createVcsDeployment",
"group": "deployments",
"weight": 413,
"weight": 412,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19147,7 +19145,7 @@
"x-appwrite": {
"method": "getDeployment",
"group": "deployments",
"weight": 414,
"weight": 413,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19210,7 +19208,7 @@
"x-appwrite": {
"method": "deleteDeployment",
"group": "deployments",
"weight": 417,
"weight": 416,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19278,7 +19276,7 @@
"x-appwrite": {
"method": "getDeploymentDownload",
"group": "deployments",
"weight": 418,
"weight": 417,
"cookies": false,
"type": "location",
"deprecated": false,
@@ -19364,7 +19362,7 @@
"x-appwrite": {
"method": "updateDeploymentStatus",
"group": "deployments",
"weight": 420,
"weight": 419,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19432,7 +19430,7 @@
"x-appwrite": {
"method": "listLogs",
"group": "logs",
"weight": 422,
"weight": 421,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19504,7 +19502,7 @@
"x-appwrite": {
"method": "getLog",
"group": "logs",
"weight": 421,
"weight": 420,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19569,7 +19567,7 @@
"x-appwrite": {
"method": "deleteLog",
"group": "logs",
"weight": 423,
"weight": 422,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19637,7 +19635,7 @@
"x-appwrite": {
"method": "listVariables",
"group": "variables",
"weight": 426,
"weight": 425,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19697,7 +19695,7 @@
"x-appwrite": {
"method": "createVariable",
"group": "variables",
"weight": 424,
"weight": 423,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19788,7 +19786,7 @@
"x-appwrite": {
"method": "getVariable",
"group": "variables",
"weight": 425,
"weight": 424,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19856,7 +19854,7 @@
"x-appwrite": {
"method": "updateVariable",
"group": "variables",
"weight": 427,
"weight": 426,
"cookies": false,
"type": "",
"deprecated": false,
@@ -19949,7 +19947,7 @@
"x-appwrite": {
"method": "deleteVariable",
"group": "variables",
"weight": 428,
"weight": 427,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22292,7 +22290,7 @@
"x-appwrite": {
"method": "list",
"group": "files",
"weight": 441,
"weight": 440,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22373,7 +22371,7 @@
"x-appwrite": {
"method": "createFileToken",
"group": "files",
"weight": 439,
"weight": 438,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22458,7 +22456,7 @@
"x-appwrite": {
"method": "get",
"group": "tokens",
"weight": 440,
"weight": 439,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22519,7 +22517,7 @@
"x-appwrite": {
"method": "update",
"group": "tokens",
"weight": 442,
"weight": 441,
"cookies": false,
"type": "",
"deprecated": false,
@@ -22591,7 +22589,7 @@
"x-appwrite": {
"method": "delete",
"group": "tokens",
"weight": 443,
"weight": 442,
"cookies": false,
"type": "",
"deprecated": false,
+4 -4
View File
@@ -3233,7 +3233,7 @@ App::post('/v1/account/recovery')
throw new Exception(Exception::USER_BLOCKED);
}
$expire = DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_RECOVERY);
$expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_RECOVERY));
$secret = Auth::tokenGenerator(Auth::TOKEN_LENGTH_RECOVERY);
$recovery = new Document([
@@ -3490,7 +3490,7 @@ App::post('/v1/account/verification')
}
$verificationSecret = Auth::tokenGenerator(Auth::TOKEN_LENGTH_VERIFICATION);
$expire = DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM);
$expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM));
$verification = new Document([
'$id' => ID::unique(),
@@ -3738,7 +3738,7 @@ App::post('/v1/account/verification/phone')
}
$secret ??= Auth::codeGenerator();
$expire = DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM);
$expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM));
$verification = new Document([
'$id' => ID::unique(),
@@ -4346,7 +4346,7 @@ App::post('/v1/account/mfa/challenge')
->inject('plan')
->action(function (string $factor, Response $response, Database $dbForProject, Document $user, Locale $locale, Document $project, Request $request, Event $queueForEvents, Messaging $queueForMessaging, Mail $queueForMails, callable $timelimit, StatsUsage $queueForStatsUsage, array $plan) {
$expire = DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM);
$expire = DateTime::formatTz(DateTime::addSeconds(new \DateTime(), Auth::TOKEN_EXPIRATION_CONFIRM));
$code = Auth::codeGenerator();
$challenge = new Document([
'userId' => $user->getId(),
+1 -1
View File
@@ -4728,7 +4728,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/documents')
});
App::put('/v1/databases/:databaseId/collections/:collectionId/documents')
->desc('Create or update documents')
->desc('Upsert documents')
->groups(['api', 'database'])
->label('scope', 'documents.write')
->label('resourceType', RESOURCE_TYPE_DATABASES)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateAnonymousSession(
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateEmailPasswordSession(
"email@example.com",
"password",
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateEmailToken(
"<USER_ID>",
"email@example.com",
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateJWT(
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateMagicURLToken(
"<USER_ID>",
"email@example.com",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateMfaAuthenticator(
"totp",
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateMfaChallenge(
"email",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateMfaRecoveryCodes(
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateOAuth2Token(
"amazon",
account.WithCreateOAuth2TokenSuccess("https://example.com"),
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreatePhoneToken(
"<USER_ID>",
"+12065550100",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreatePhoneVerification(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateRecovery(
"email@example.com",
"https://example.com",
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateSession(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.CreateVerification(
"https://example.com",
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.Create(
"<USER_ID>",
"email@example.com",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.DeleteIdentity(
"<IDENTITY_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.DeleteMfaAuthenticator(
"totp",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.DeleteSession(
"<SESSION_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.DeleteSessions(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.GetMfaRecoveryCodes(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.GetPrefs(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.GetSession(
"<SESSION_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.Get(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.ListIdentities(
account.WithListIdentitiesQueries([]interface{}{}),
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.ListLogs(
account.WithListLogsQueries([]interface{}{}),
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.ListMfaFactors(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.ListSessions(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateEmail(
"email@example.com",
"password",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMFA(
false,
)
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMagicURLSession(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMfaAuthenticator(
"totp",
"<OTP>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMfaChallenge(
"<CHALLENGE_ID>",
"<OTP>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateMfaRecoveryCodes(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateName(
"<NAME>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePassword(
"",
account.WithUpdatePasswordOldPassword("password"),
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePhoneSession(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePhoneVerification(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePhone(
"+12065550100",
"password",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdatePrefs(
map[string]interface{}{},
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateRecovery(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateSession(
"<SESSION_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateStatus(
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := account.NewAccount(client)
service := account.New(client)
response, error := service.UpdateVerification(
"<USER_ID>",
"<SECRET>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetBrowser(
"aa",
avatars.WithGetBrowserWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetCreditCard(
"amex",
avatars.WithGetCreditCardWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetFavicon(
"https://example.com",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetFlag(
"af",
avatars.WithGetFlagWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetImage(
"https://example.com",
avatars.WithGetImageWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetInitials(
avatars.WithGetInitialsName("<NAME>"),
avatars.WithGetInitialsWidth(0),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := avatars.NewAvatars(client)
service := avatars.New(client)
response, error := service.GetQR(
"<TEXT>",
avatars.WithGetQRSize(1),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateBooleanAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateCollection(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateDatetimeAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,14 +7,14 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithSession("") // The user session to authenticate with
client.WithKey("<YOUR_API_KEY>") // Your secret API key
client.WithJWT("<YOUR_JWT>") // Your secret JSON Web Token
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetSession("") // The user session to authenticate with
client.SetKey("<YOUR_API_KEY>") // Your secret API key
client.SetJWT("<YOUR_JWT>") // Your secret JSON Web Token
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,12 +7,12 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateDocuments(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateEmailAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateEnumAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateFloatAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateIndex(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateIntegerAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateIpAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateRelationshipAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateStringAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.CreateUrlAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.Create(
"<DATABASE_ID>",
"<NAME>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteCollection(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteDocuments(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.DeleteIndex(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.Delete(
"<DATABASE_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.GetAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.GetCollection(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.GetDocument(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.GetIndex(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.Get(
"<DATABASE_ID>",
)
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.ListAttributes(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.ListCollections(
"<DATABASE_ID>",
databases.WithListCollectionsQueries([]interface{}{}),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithSession("") // The user session to authenticate with
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetSession("") // The user session to authenticate with
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.ListDocuments(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.ListIndexes(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.List(
databases.WithListQueries([]interface{}{}),
databases.WithListSearch("<SEARCH>"),
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateBooleanAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateCollection(
"<DATABASE_ID>",
"<COLLECTION_ID>",
@@ -7,13 +7,13 @@ import (
)
func main() {
client := client.NewClient()
client := client.New(
client.WithEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.WithProject("<YOUR_PROJECT_ID>") // Your project ID
client.WithKey("<YOUR_API_KEY>") // Your secret API key
)
client.SetEndpoint("https://<REGION>.cloud.appwrite.io/v1") // Your API Endpoint
client.SetProject("<YOUR_PROJECT_ID>") // Your project ID
client.SetKey("<YOUR_API_KEY>") // Your secret API key
service := databases.NewDatabases(client)
service := databases.New(client)
response, error := service.UpdateDatetimeAttribute(
"<DATABASE_ID>",
"<COLLECTION_ID>",

Some files were not shown because too many files have changed in this diff Show More