diff --git a/Dockerfile b/Dockerfile index 30b017b573..76ca3e7ae2 100755 --- a/Dockerfile +++ b/Dockerfile @@ -38,10 +38,12 @@ COPY --from=composer /usr/local/src/vendor /usr/src/code/vendor COPY ./app /usr/src/code/app COPY ./public /usr/src/code/public COPY ./bin /usr/local/bin -COPY ./docs /usr/src/code/docs +#COPY ./docs /usr/src/code/docs COPY ./src /usr/src/code/src COPY ./dev /usr/src/code/dev +COPY ./vendor/appwrite/sdk-generator /usr/src/code/vendor/appwrite/sdk-generator + # Set Volumes RUN mkdir -p /storage/uploads && \ mkdir -p /storage/imports && \ diff --git a/app/config/specs/open-api3-1.8.x-client.json b/app/config/specs/open-api3-1.8.x-client.json index c077cbc94f..c07936d6e0 100644 --- a/app/config/specs/open-api3-1.8.x-client.json +++ b/app/config/specs/open-api3-1.8.x-client.json @@ -1856,7 +1856,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2066,7 +2065,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4476,9 +4474,7 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -4720,9 +4716,7 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -4996,12 +4990,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -5023,7 +5017,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -5084,9 +5078,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5108,7 +5102,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -5124,9 +5118,7 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -5148,30 +5140,6 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." - }, - { - "name": "createRows", - "auth": { - "Admin": [], - "Key": [] - }, - "parameters": [ - "databaseId", - "tableId", - "rows" - ], - "required": [ - "databaseId", - "tableId", - "rows" - ], - "responses": [ - { - "code": 201, - "model": "#\/components\/schemas\/rowList" - } - ], - "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." } ], "auth": { @@ -5246,12 +5214,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -5273,7 +5241,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -5344,9 +5312,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5368,7 +5336,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -5384,9 +5352,7 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5469,9 +5435,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -5493,7 +5459,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -5575,9 +5541,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -5592,7 +5558,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -5830,7 +5796,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } diff --git a/app/config/specs/open-api3-1.8.x-console.json b/app/config/specs/open-api3-1.8.x-console.json index 22357e7b0b..7e398d78d6 100644 --- a/app/config/specs/open-api3-1.8.x-console.json +++ b/app/config/specs/open-api3-1.8.x-console.json @@ -1872,7 +1872,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2082,7 +2081,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4558,6 +4556,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4631,6 +4661,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4710,6 +4772,38 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "listUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabases" + } + ], + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "listDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabases" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4782,6 +4876,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4841,6 +4967,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4917,6 +5075,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/components\/schemas\/none" + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/components\/schemas\/none" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -8147,9 +8337,7 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8175,8 +8363,7 @@ { "name": "createDocuments", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8313,8 +8500,7 @@ { "name": "upsertDocuments", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -8720,9 +8906,7 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -9885,85 +10069,12 @@ ] } }, - "\/databases\/{databaseId}\/logs": { - "get": { - "summary": "List database logs", - "operationId": "databasesListLogs", - "tags": [ - "databases" - ], - "description": "Get the database activity logs list by its unique ID.", - "responses": { - "200": { - "description": "Logs List", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/logList" - } - } - } - } - }, - "deprecated": false, - "x-appwrite": { - "method": "listLogs", - "group": "logs", - "weight": 321, - "cookies": false, - "type": "", - "demo": "databases\/list-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "databases.read", - "platforms": [ - "console" - ], - "packaging": false, - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "path" - }, - { - "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "in": "query" - } - ] - } - }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9980,12 +10091,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -10044,9 +10155,9 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -10063,12 +10174,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10145,12 +10256,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -10167,12 +10278,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10217,9 +10328,9 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -10236,12 +10347,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10323,9 +10434,9 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -10335,12 +10446,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10384,12 +10495,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -10411,7 +10522,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -10468,12 +10579,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -10495,7 +10606,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10574,12 +10685,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10601,7 +10712,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10685,12 +10796,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -10712,7 +10823,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10791,12 +10902,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10818,7 +10929,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10902,12 +11013,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10929,7 +11040,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11008,12 +11119,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11035,7 +11146,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11119,12 +11230,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -11146,7 +11257,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11234,12 +11345,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11261,7 +11372,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11354,12 +11465,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11381,7 +11492,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11470,12 +11581,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11497,7 +11608,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11591,12 +11702,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11618,7 +11729,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11707,12 +11818,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11734,7 +11845,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11828,12 +11939,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11855,7 +11966,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11934,12 +12045,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11961,7 +12072,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12045,12 +12156,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12072,7 +12183,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12176,12 +12287,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -12203,7 +12314,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12293,12 +12404,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12320,7 +12431,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12409,12 +12520,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -12436,7 +12547,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12515,12 +12626,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12542,7 +12653,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12626,12 +12737,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -12684,7 +12795,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12738,9 +12849,9 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -12755,7 +12866,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12808,12 +12919,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12835,7 +12946,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12916,12 +13027,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12943,7 +13054,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -13001,9 +13112,9 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -13025,7 +13136,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13126,12 +13237,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -13153,7 +13264,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13207,9 +13318,9 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -13224,7 +13335,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13277,12 +13388,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/logs": { "get": { "summary": "List table logs", - "operationId": "tablesListLogs", + "operationId": "gridsListTableLogs", "tags": [ - "tables" + "grids" ], "description": "Get the table activity logs list by its unique ID.", "responses": { @@ -13299,12 +13410,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "listLogs", - "group": "tables", + "method": "listTableLogs", + "group": "grids", "weight": 375, "cookies": false, "type": "", - "demo": "tables\/list-logs.md", + "demo": "grids\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -13360,12 +13471,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -13387,7 +13498,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -13448,9 +13559,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13472,7 +13583,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -13488,9 +13599,7 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13516,8 +13625,7 @@ { "name": "createRows", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13611,9 +13719,9 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -13635,7 +13743,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13650,8 +13758,7 @@ { "name": "upsertRows", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -13721,9 +13828,9 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -13745,7 +13852,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13815,9 +13922,9 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -13839,7 +13946,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13903,12 +14010,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13930,7 +14037,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -14001,9 +14108,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -14025,7 +14132,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -14041,9 +14148,7 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -14126,9 +14231,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -14150,7 +14255,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -14232,9 +14337,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -14249,7 +14354,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -14306,12 +14411,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/logs": { "get": { "summary": "List row logs", - "operationId": "tablesListRowLogs", + "operationId": "gridsListRowLogs", "tags": [ - "tables" + "grids" ], "description": "Get the row activity logs list by its unique ID.", "responses": { @@ -14333,7 +14438,7 @@ "weight": 413, "cookies": false, "type": "", - "demo": "tables\/list-row-logs.md", + "demo": "grids\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -14399,12 +14504,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -14426,7 +14531,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14511,12 +14616,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -14538,7 +14643,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14623,12 +14728,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/usage": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/usage": { "get": { "summary": "Get table usage stats", - "operationId": "tablesGetUsage", + "operationId": "gridsGetTableUsage", "tags": [ - "tables" + "grids" ], "description": "Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { @@ -14645,12 +14750,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "getUsage", + "method": "getTableUsage", "group": null, "weight": 376, "cookies": false, "type": "", - "demo": "tables\/get-usage.md", + "demo": "grids\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, @@ -14692,7 +14797,7 @@ "30d", "90d" ], - "x-enum-name": "DatabaseUsageRange", + "x-enum-name": "GridUsageRange", "x-enum-keys": [ "Twenty Four Hours", "Thirty Days", @@ -14715,6 +14820,111 @@ ] } }, + "\/databases\/{databaseId}\/logs": { + "get": { + "summary": "List database logs", + "operationId": "databasesListLogs", + "tags": [ + "databases" + ], + "description": "Get the database activity logs list by its unique ID.", + "responses": { + "200": { + "description": "Logs List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/logList" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "listLogs", + "group": "logs", + "weight": 321, + "cookies": false, + "type": "", + "demo": "databases\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "databases.read", + "platforms": [ + "console" + ], + "packaging": false, + "methods": [ + { + "name": "listLogs", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/logList" + } + ], + "description": "Get the database activity logs list by its unique ID." + }, + { + "name": "listDatabaseLogs", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/logList" + } + ], + "description": "" + } + ], + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "in": "query" + } + ] + } + }, "\/databases\/{databaseId}\/usage": { "get": { "summary": "Get database usage stats", @@ -14752,6 +14962,38 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "getDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabase" + } + ], + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "getDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabase" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -16796,7 +17038,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } @@ -43572,9 +43814,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -43617,6 +43874,28 @@ }, "x-example": [], "nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -43627,23 +43906,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -43689,27 +43952,18 @@ }, "x-example": [], "nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { @@ -45856,6 +46110,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45868,6 +46127,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt" ] }, @@ -45900,6 +46160,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45917,6 +46182,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "framework" ] @@ -45950,6 +46216,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45967,6 +46238,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "runtime" ] diff --git a/app/config/specs/open-api3-1.8.x-server.json b/app/config/specs/open-api3-1.8.x-server.json index 09572fe6b5..0fde42be4e 100644 --- a/app/config/specs/open-api3-1.8.x-server.json +++ b/app/config/specs/open-api3-1.8.x-server.json @@ -1879,7 +1879,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -1954,7 +1953,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4076,6 +4074,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4150,6 +4182,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4230,6 +4296,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4290,6 +4390,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4367,6 +4501,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/components\/schemas\/none" + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/components\/schemas\/none" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -7628,9 +7796,8 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -7656,7 +7823,7 @@ { "name": "createDocuments", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -7796,7 +7963,7 @@ { "name": "upsertDocuments", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -8208,9 +8375,8 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -9105,12 +9271,12 @@ ] } }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9127,12 +9293,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -9192,9 +9358,9 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -9211,12 +9377,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9294,12 +9460,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -9316,12 +9482,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9367,9 +9533,9 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -9386,12 +9552,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9474,9 +9640,9 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -9486,12 +9652,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9536,12 +9702,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -9563,7 +9729,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -9621,12 +9787,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -9648,7 +9814,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9728,12 +9894,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9755,7 +9921,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9840,12 +10006,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -9867,7 +10033,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9947,12 +10113,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9974,7 +10140,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10059,12 +10225,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10086,7 +10252,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10166,12 +10332,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10193,7 +10359,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10278,12 +10444,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -10305,7 +10471,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10394,12 +10560,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10421,7 +10587,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10515,12 +10681,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10542,7 +10708,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10632,12 +10798,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10659,7 +10825,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10754,12 +10920,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10781,7 +10947,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10871,12 +11037,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10898,7 +11064,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10993,12 +11159,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11020,7 +11186,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11100,12 +11266,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11127,7 +11293,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11212,12 +11378,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -11239,7 +11405,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11344,12 +11510,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -11371,7 +11537,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11462,12 +11628,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11489,7 +11655,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11579,12 +11745,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -11606,7 +11772,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11686,12 +11852,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11713,7 +11879,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11798,12 +11964,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -11856,7 +12022,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11911,9 +12077,9 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -11928,7 +12094,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11982,12 +12148,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12009,7 +12175,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12091,12 +12257,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12118,7 +12284,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12177,9 +12343,9 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -12201,7 +12367,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12303,12 +12469,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -12330,7 +12496,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12385,9 +12551,9 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -12402,7 +12568,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12456,12 +12622,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -12483,7 +12649,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -12546,9 +12712,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -12570,7 +12736,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -12586,9 +12752,8 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -12614,7 +12779,7 @@ { "name": "createRows", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -12711,9 +12876,9 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -12735,7 +12900,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12750,7 +12915,7 @@ { "name": "upsertRows", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -12822,9 +12987,9 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -12846,7 +13011,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12917,9 +13082,9 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -12941,7 +13106,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13006,12 +13171,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13033,7 +13198,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13106,9 +13271,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13130,7 +13295,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -13146,9 +13311,8 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -13233,9 +13397,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -13257,7 +13421,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -13341,9 +13505,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -13358,7 +13522,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -13417,12 +13581,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -13444,7 +13608,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -13530,12 +13694,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -13557,7 +13721,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -15431,7 +15595,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } @@ -33199,9 +33363,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -33244,6 +33423,28 @@ }, "x-example": [], "nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -33254,23 +33455,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -33316,27 +33501,18 @@ }, "x-example": [], "nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index e8efee6516..556775e236 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -4473,10 +4473,9 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -4717,10 +4716,9 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -4994,12 +4992,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -5021,7 +5019,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -5082,9 +5080,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5106,7 +5104,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -5121,10 +5119,9 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -5146,30 +5143,6 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." - }, - { - "name": "createRows", - "auth": { - "Admin": [], - "Key": [] - }, - "parameters": [ - "databaseId", - "tableId", - "rows" - ], - "required": [ - "databaseId", - "tableId", - "rows" - ], - "responses": [ - { - "code": 201, - "model": "#\/components\/schemas\/rowList" - } - ], - "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." } ], "auth": { @@ -5244,12 +5217,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -5271,7 +5244,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -5342,9 +5315,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5366,7 +5339,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -5381,10 +5354,9 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5467,9 +5439,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -5491,7 +5463,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -5573,9 +5545,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -5590,7 +5562,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -5828,7 +5800,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index b1c864453b..85fa04f2cb 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -4556,6 +4556,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4629,6 +4663,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4708,6 +4776,40 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "listUsage", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabases" + } + ], + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "listDatabaseUsage", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabases" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4780,6 +4882,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4839,6 +4975,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4915,6 +5085,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -8144,10 +8346,9 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8172,9 +8373,9 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8310,9 +8511,9 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -8717,10 +8918,9 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -9883,85 +10083,12 @@ ] } }, - "\/databases\/{databaseId}\/logs": { - "get": { - "summary": "List database logs", - "operationId": "databasesListLogs", - "tags": [ - "databases" - ], - "description": "Get the database activity logs list by its unique ID.", - "responses": { - "200": { - "description": "Logs List", - "content": { - "application\/json": { - "schema": { - "$ref": "#\/components\/schemas\/logList" - } - } - } - } - }, - "deprecated": false, - "x-appwrite": { - "method": "listLogs", - "group": "logs", - "weight": 321, - "cookies": false, - "type": "", - "demo": "databases\/list-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "databases.read", - "platforms": [ - "console" - ], - "packaging": false, - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "schema": { - "type": "string", - "x-example": "" - }, - "in": "path" - }, - { - "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", - "required": false, - "schema": { - "type": "array", - "items": { - "type": "string" - }, - "default": [] - }, - "in": "query" - } - ] - } - }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9978,12 +10105,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -10042,9 +10169,9 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -10061,12 +10188,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10143,12 +10270,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -10165,12 +10292,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10215,9 +10342,9 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -10234,12 +10361,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10321,9 +10448,9 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -10333,12 +10460,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10382,12 +10509,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -10409,7 +10536,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -10466,12 +10593,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -10493,7 +10620,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10572,12 +10699,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10599,7 +10726,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10683,12 +10810,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -10710,7 +10837,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10789,12 +10916,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10816,7 +10943,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10900,12 +11027,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10927,7 +11054,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11006,12 +11133,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11033,7 +11160,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11117,12 +11244,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -11144,7 +11271,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11232,12 +11359,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11259,7 +11386,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11352,12 +11479,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11379,7 +11506,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11468,12 +11595,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11495,7 +11622,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11589,12 +11716,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11616,7 +11743,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11705,12 +11832,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11732,7 +11859,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11826,12 +11953,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11853,7 +11980,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11932,12 +12059,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11959,7 +12086,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12043,12 +12170,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12070,7 +12197,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12174,12 +12301,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -12201,7 +12328,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12291,12 +12418,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12318,7 +12445,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12407,12 +12534,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -12434,7 +12561,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12513,12 +12640,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12540,7 +12667,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12624,12 +12751,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -12682,7 +12809,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12736,9 +12863,9 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -12753,7 +12880,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12806,12 +12933,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12833,7 +12960,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12914,12 +13041,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12941,7 +13068,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12999,9 +13126,9 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -13023,7 +13150,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13124,12 +13251,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -13151,7 +13278,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13205,9 +13332,9 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -13222,7 +13349,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13275,12 +13402,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/logs": { "get": { "summary": "List table logs", - "operationId": "tablesListLogs", + "operationId": "gridsListTableLogs", "tags": [ - "tables" + "grids" ], "description": "Get the table activity logs list by its unique ID.", "responses": { @@ -13297,12 +13424,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "listLogs", - "group": "tables", + "method": "listTableLogs", + "group": "grids", "weight": 375, "cookies": false, "type": "", - "demo": "tables\/list-logs.md", + "demo": "grids\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -13358,12 +13485,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -13385,7 +13512,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -13446,9 +13573,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13470,7 +13597,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -13485,10 +13612,9 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13513,9 +13639,9 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13609,9 +13735,9 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -13633,7 +13759,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13647,9 +13773,9 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -13719,9 +13845,9 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -13743,7 +13869,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13813,9 +13939,9 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -13837,7 +13963,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13901,12 +14027,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13928,7 +14054,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13999,9 +14125,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -14023,7 +14149,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -14038,10 +14164,9 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -14124,9 +14249,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -14148,7 +14273,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -14230,9 +14355,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -14247,7 +14372,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -14304,12 +14429,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/logs": { "get": { "summary": "List row logs", - "operationId": "tablesListRowLogs", + "operationId": "gridsListRowLogs", "tags": [ - "tables" + "grids" ], "description": "Get the row activity logs list by its unique ID.", "responses": { @@ -14331,7 +14456,7 @@ "weight": 413, "cookies": false, "type": "", - "demo": "tables\/list-row-logs.md", + "demo": "grids\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -14397,12 +14522,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -14424,7 +14549,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14509,12 +14634,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -14536,7 +14661,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14621,12 +14746,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/usage": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/usage": { "get": { "summary": "Get table usage stats", - "operationId": "tablesGetUsage", + "operationId": "gridsGetTableUsage", "tags": [ - "tables" + "grids" ], "description": "Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { @@ -14643,12 +14768,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "getUsage", + "method": "getTableUsage", "group": null, "weight": 376, "cookies": false, "type": "", - "demo": "tables\/get-usage.md", + "demo": "grids\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, @@ -14690,7 +14815,7 @@ "30d", "90d" ], - "x-enum-name": "DatabaseUsageRange", + "x-enum-name": "GridUsageRange", "x-enum-keys": [ "Twenty Four Hours", "Thirty Days", @@ -14713,6 +14838,113 @@ ] } }, + "\/databases\/{databaseId}\/logs": { + "get": { + "summary": "List database logs", + "operationId": "databasesListLogs", + "tags": [ + "databases" + ], + "description": "Get the database activity logs list by its unique ID.", + "responses": { + "200": { + "description": "Logs List", + "content": { + "application\/json": { + "schema": { + "$ref": "#\/components\/schemas\/logList" + } + } + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "listLogs", + "group": "logs", + "weight": 321, + "cookies": false, + "type": "", + "demo": "databases\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "databases.read", + "platforms": [ + "console" + ], + "packaging": false, + "methods": [ + { + "name": "listLogs", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/logList" + } + ], + "description": "Get the database activity logs list by its unique ID." + }, + { + "name": "listDatabaseLogs", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/logList" + } + ], + "description": "" + } + ], + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "schema": { + "type": "string", + "x-example": "" + }, + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string" + }, + "default": [] + }, + "in": "query" + } + ] + } + }, "\/databases\/{databaseId}\/usage": { "get": { "summary": "Get database usage stats", @@ -14750,6 +14982,40 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "getDatabaseUsage", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabase" + } + ], + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "getDatabaseUsage", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/usageDatabase" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -16794,7 +17060,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } @@ -43570,9 +43836,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -43615,6 +43896,28 @@ }, "x-example": [], "nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -43625,23 +43928,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -43687,27 +43974,18 @@ }, "x-example": [], "nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { @@ -45854,6 +46132,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45866,6 +46149,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt" ] }, @@ -45898,6 +46182,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45915,6 +46204,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "framework" ] @@ -45948,6 +46238,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45965,6 +46260,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "runtime" ] diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index 93336cf5ff..551c765683 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -4074,6 +4074,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4148,6 +4184,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4228,6 +4300,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4288,6 +4396,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/components\/schemas\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4365,6 +4509,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -7625,10 +7803,10 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -7653,8 +7831,9 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -7793,8 +7972,9 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -8205,10 +8385,10 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -9103,12 +9283,12 @@ ] } }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9125,12 +9305,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -9190,9 +9370,9 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -9209,12 +9389,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9292,12 +9472,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -9314,12 +9494,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9365,9 +9545,9 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -9384,12 +9564,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9472,9 +9652,9 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -9484,12 +9664,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9534,12 +9714,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -9561,7 +9741,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -9619,12 +9799,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -9646,7 +9826,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9726,12 +9906,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9753,7 +9933,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9838,12 +10018,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -9865,7 +10045,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9945,12 +10125,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9972,7 +10152,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10057,12 +10237,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10084,7 +10264,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10164,12 +10344,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10191,7 +10371,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10276,12 +10456,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -10303,7 +10483,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10392,12 +10572,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10419,7 +10599,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10513,12 +10693,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10540,7 +10720,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10630,12 +10810,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10657,7 +10837,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10752,12 +10932,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10779,7 +10959,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10869,12 +11049,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10896,7 +11076,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10991,12 +11171,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11018,7 +11198,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11098,12 +11278,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11125,7 +11305,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11210,12 +11390,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -11237,7 +11417,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11342,12 +11522,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -11369,7 +11549,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11460,12 +11640,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11487,7 +11667,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11577,12 +11757,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -11604,7 +11784,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11684,12 +11864,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11711,7 +11891,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11796,12 +11976,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -11854,7 +12034,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11909,9 +12089,9 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -11926,7 +12106,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11980,12 +12160,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12007,7 +12187,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12089,12 +12269,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12116,7 +12296,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12175,9 +12355,9 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -12199,7 +12379,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12301,12 +12481,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -12328,7 +12508,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12383,9 +12563,9 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -12400,7 +12580,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12454,12 +12634,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -12481,7 +12661,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -12544,9 +12724,9 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -12568,7 +12748,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -12583,10 +12763,10 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -12611,8 +12791,9 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -12709,9 +12890,9 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -12733,7 +12914,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12747,8 +12928,9 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -12820,9 +13002,9 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -12844,7 +13026,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12915,9 +13097,9 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -12939,7 +13121,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13004,12 +13186,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13031,7 +13213,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13104,9 +13286,9 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13128,7 +13310,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -13143,10 +13325,10 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -13231,9 +13413,9 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -13255,7 +13437,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -13339,9 +13521,9 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -13356,7 +13538,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -13415,12 +13597,12 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -13442,7 +13624,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -13528,12 +13710,12 @@ } } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -13555,7 +13737,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -15429,7 +15611,7 @@ "scheduledAt": { "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", - "x-example": null + "x-example": "" } } } @@ -33197,9 +33379,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -33242,6 +33439,28 @@ }, "x-example": [], "nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -33252,23 +33471,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -33314,27 +33517,18 @@ }, "x-example": [], "nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { diff --git a/app/config/specs/swagger2-1.8.x-client.json b/app/config/specs/swagger2-1.8.x-client.json index f2b814e9b6..8572eaaa7f 100644 --- a/app/config/specs/swagger2-1.8.x-client.json +++ b/app/config/specs/swagger2-1.8.x-client.json @@ -1964,7 +1964,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2175,7 +2174,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4613,9 +4611,7 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -4848,9 +4844,7 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5110,16 +5104,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -5137,7 +5131,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -5192,7 +5186,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -5200,7 +5194,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5218,7 +5212,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -5233,9 +5227,7 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -5257,30 +5249,6 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." - }, - { - "name": "createRows", - "auth": { - "Admin": [], - "Key": [] - }, - "parameters": [ - "databaseId", - "tableId", - "rows" - ], - "required": [ - "databaseId", - "tableId", - "rows" - ], - "responses": [ - { - "code": 201, - "model": "#\/definitions\/rowList" - } - ], - "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." } ], "auth": { @@ -5353,16 +5321,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -5380,7 +5348,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -5443,7 +5411,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -5451,7 +5419,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5469,7 +5437,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -5484,9 +5452,7 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5563,7 +5529,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -5571,7 +5537,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -5589,7 +5555,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -5664,13 +5630,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -5685,7 +5651,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -5916,7 +5882,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } diff --git a/app/config/specs/swagger2-1.8.x-console.json b/app/config/specs/swagger2-1.8.x-console.json index 94fff6695c..ecf5fcc4a1 100644 --- a/app/config/specs/swagger2-1.8.x-console.json +++ b/app/config/specs/swagger2-1.8.x-console.json @@ -1990,7 +1990,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2201,7 +2200,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4718,6 +4716,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4790,6 +4820,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4872,6 +4934,38 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "listUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabases" + } + ], + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "listDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabases" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4942,6 +5036,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -5001,6 +5127,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -5079,6 +5237,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/definitions\/none" + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/definitions\/none" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -8267,9 +8457,7 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8295,8 +8483,7 @@ { "name": "createDocuments", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8433,8 +8620,7 @@ { "name": "upsertDocuments", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -8823,9 +9009,7 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -9932,86 +10116,16 @@ ] } }, - "\/databases\/{databaseId}\/logs": { - "get": { - "summary": "List database logs", - "operationId": "databasesListLogs", - "consumes": [], - "produces": [ - "application\/json" - ], - "tags": [ - "databases" - ], - "description": "Get the database activity logs list by its unique ID.", - "responses": { - "200": { - "description": "Logs List", - "schema": { - "$ref": "#\/definitions\/logList" - } - } - }, - "deprecated": false, - "x-appwrite": { - "method": "listLogs", - "group": "logs", - "weight": 321, - "cookies": false, - "type": "", - "demo": "databases\/list-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "databases.read", - "platforms": [ - "console" - ], - "packaging": false, - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "type": "string", - "x-example": "", - "in": "path" - }, - { - "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", - "required": false, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "default": [], - "in": "query" - } - ] - } - }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -10024,12 +10138,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -10083,7 +10197,7 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "consumes": [ "application\/json" ], @@ -10091,7 +10205,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -10104,12 +10218,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10187,16 +10301,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -10209,12 +10323,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10255,7 +10369,7 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "consumes": [ "application\/json" ], @@ -10263,7 +10377,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -10276,12 +10390,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10361,13 +10475,13 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -10377,12 +10491,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10422,16 +10536,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -10449,7 +10563,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -10501,10 +10615,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "consumes": [ "application\/json" ], @@ -10512,7 +10626,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -10530,7 +10644,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10607,10 +10721,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "consumes": [ "application\/json" ], @@ -10618,7 +10732,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10636,7 +10750,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10715,10 +10829,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "consumes": [ "application\/json" ], @@ -10726,7 +10840,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -10744,7 +10858,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10821,10 +10935,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "consumes": [ "application\/json" ], @@ -10832,7 +10946,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10850,7 +10964,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10929,10 +11043,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "consumes": [ "application\/json" ], @@ -10940,7 +11054,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10958,7 +11072,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11035,10 +11149,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "consumes": [ "application\/json" ], @@ -11046,7 +11160,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11064,7 +11178,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11143,10 +11257,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "consumes": [ "application\/json" ], @@ -11154,7 +11268,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -11172,7 +11286,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11259,10 +11373,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "consumes": [ "application\/json" ], @@ -11270,7 +11384,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11288,7 +11402,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11377,10 +11491,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "consumes": [ "application\/json" ], @@ -11388,7 +11502,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11406,7 +11520,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11495,10 +11609,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "consumes": [ "application\/json" ], @@ -11506,7 +11620,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11524,7 +11638,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11615,10 +11729,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "consumes": [ "application\/json" ], @@ -11626,7 +11740,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11644,7 +11758,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11733,10 +11847,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "consumes": [ "application\/json" ], @@ -11744,7 +11858,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11762,7 +11876,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11853,10 +11967,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "consumes": [ "application\/json" ], @@ -11864,7 +11978,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11882,7 +11996,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11959,10 +12073,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "consumes": [ "application\/json" ], @@ -11970,7 +12084,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11988,7 +12102,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12067,10 +12181,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12078,7 +12192,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12096,7 +12210,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12200,10 +12314,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "consumes": [ "application\/json" ], @@ -12211,7 +12325,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -12229,7 +12343,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12319,10 +12433,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "consumes": [ "application\/json" ], @@ -12330,7 +12444,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12348,7 +12462,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12433,10 +12547,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "consumes": [ "application\/json" ], @@ -12444,7 +12558,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -12462,7 +12576,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12539,10 +12653,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "consumes": [ "application\/json" ], @@ -12550,7 +12664,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12568,7 +12682,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12647,16 +12761,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -12705,7 +12819,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12753,13 +12867,13 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -12774,7 +12888,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12821,10 +12935,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12832,7 +12946,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12850,7 +12964,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12925,16 +13039,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12952,7 +13066,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -13005,7 +13119,7 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "consumes": [ "application\/json" ], @@ -13013,7 +13127,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -13031,7 +13145,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13131,16 +13245,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -13158,7 +13272,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13206,13 +13320,13 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -13227,7 +13341,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13274,16 +13388,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/logs": { "get": { "summary": "List table logs", - "operationId": "tablesListLogs", + "operationId": "gridsListTableLogs", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get the table activity logs list by its unique ID.", "responses": { @@ -13296,12 +13410,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "listLogs", - "group": "tables", + "method": "listTableLogs", + "group": "grids", "weight": 375, "cookies": false, "type": "", - "demo": "tables\/list-logs.md", + "demo": "grids\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -13352,16 +13466,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -13379,7 +13493,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -13434,7 +13548,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -13442,7 +13556,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13460,7 +13574,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -13475,9 +13589,7 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13503,8 +13615,7 @@ { "name": "createRows", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13596,7 +13707,7 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "consumes": [ "application\/json" ], @@ -13604,7 +13715,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -13622,7 +13733,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13637,8 +13748,7 @@ { "name": "upsertRows", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -13703,7 +13813,7 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "consumes": [ "application\/json" ], @@ -13711,7 +13821,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -13729,7 +13839,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13795,7 +13905,7 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "consumes": [ "application\/json" ], @@ -13803,7 +13913,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -13821,7 +13931,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13880,16 +13990,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13907,7 +14017,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13970,7 +14080,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -13978,7 +14088,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13996,7 +14106,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -14011,9 +14121,7 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -14090,7 +14198,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -14098,7 +14206,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -14116,7 +14224,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -14191,13 +14299,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -14212,7 +14320,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -14262,16 +14370,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/logs": { "get": { "summary": "List row logs", - "operationId": "tablesListRowLogs", + "operationId": "gridsListRowLogs", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get the row activity logs list by its unique ID.", "responses": { @@ -14289,7 +14397,7 @@ "weight": 413, "cookies": false, "type": "", - "demo": "tables\/list-row-logs.md", + "demo": "grids\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -14348,10 +14456,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "consumes": [ "application\/json" ], @@ -14359,7 +14467,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -14377,7 +14485,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14454,10 +14562,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "consumes": [ "application\/json" ], @@ -14465,7 +14573,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -14483,7 +14591,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14560,16 +14668,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/usage": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/usage": { "get": { "summary": "Get table usage stats", - "operationId": "tablesGetUsage", + "operationId": "gridsGetTableUsage", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { @@ -14582,12 +14690,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "getUsage", + "method": "getTableUsage", "group": null, "weight": 376, "cookies": false, "type": "", - "demo": "tables\/get-usage.md", + "demo": "grids\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, @@ -14626,7 +14734,7 @@ "30d", "90d" ], - "x-enum-name": "DatabaseUsageRange", + "x-enum-name": "GridUsageRange", "x-enum-keys": [ "Twenty Four Hours", "Thirty Days", @@ -14646,6 +14754,108 @@ ] } }, + "\/databases\/{databaseId}\/logs": { + "get": { + "summary": "List database logs", + "operationId": "databasesListLogs", + "consumes": [], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Get the database activity logs list by its unique ID.", + "responses": { + "200": { + "description": "Logs List", + "schema": { + "$ref": "#\/definitions\/logList" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "listLogs", + "group": "logs", + "weight": 321, + "cookies": false, + "type": "", + "demo": "databases\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "databases.read", + "platforms": [ + "console" + ], + "packaging": false, + "methods": [ + { + "name": "listLogs", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/logList" + } + ], + "description": "Get the database activity logs list by its unique ID." + }, + { + "name": "listDatabaseLogs", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/logList" + } + ], + "description": "" + } + ], + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", + "required": false, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "default": [], + "in": "query" + } + ] + } + }, "\/databases\/{databaseId}\/usage": { "get": { "summary": "Get database usage stats", @@ -14683,6 +14893,38 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "getDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabase" + } + ], + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "getDatabaseUsage", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabase" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -16733,7 +16975,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } @@ -43631,9 +43873,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -43676,6 +43933,28 @@ }, "x-example": [], "x-nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -43686,23 +43965,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -43748,27 +44011,18 @@ }, "x-example": [], "x-nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { @@ -45924,6 +46178,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45936,6 +46195,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt" ] }, @@ -45968,6 +46228,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45985,6 +46250,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "framework" ] @@ -46018,6 +46284,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -46035,6 +46306,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "runtime" ] diff --git a/app/config/specs/swagger2-1.8.x-server.json b/app/config/specs/swagger2-1.8.x-server.json index cb96855956..7912caab25 100644 --- a/app/config/specs/swagger2-1.8.x-server.json +++ b/app/config/specs/swagger2-1.8.x-server.json @@ -1996,7 +1996,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -2075,7 +2074,6 @@ "client" ], "packaging": false, - "deprecated": true, "auth": { "Project": [] } @@ -4224,6 +4222,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4297,6 +4329,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4380,6 +4446,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4440,6 +4540,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4519,6 +4653,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/definitions\/none" + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204, + "model": "#\/definitions\/none" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -7738,9 +7906,8 @@ { "name": "createDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -7766,7 +7933,7 @@ { "name": "createDocuments", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -7906,7 +8073,7 @@ { "name": "upsertDocuments", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -8301,9 +8468,8 @@ { "name": "upsertDocument", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -9160,16 +9326,16 @@ ] } }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9182,12 +9348,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -9242,7 +9408,7 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "consumes": [ "application\/json" ], @@ -9250,7 +9416,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -9263,12 +9429,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9347,16 +9513,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -9369,12 +9535,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9416,7 +9582,7 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "consumes": [ "application\/json" ], @@ -9424,7 +9590,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -9437,12 +9603,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9523,13 +9689,13 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -9539,12 +9705,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9585,16 +9751,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -9612,7 +9778,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -9665,10 +9831,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "consumes": [ "application\/json" ], @@ -9676,7 +9842,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -9694,7 +9860,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9772,10 +9938,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "consumes": [ "application\/json" ], @@ -9783,7 +9949,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9801,7 +9967,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9881,10 +10047,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "consumes": [ "application\/json" ], @@ -9892,7 +10058,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -9910,7 +10076,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9988,10 +10154,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "consumes": [ "application\/json" ], @@ -9999,7 +10165,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10017,7 +10183,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10097,10 +10263,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "consumes": [ "application\/json" ], @@ -10108,7 +10274,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10126,7 +10292,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10204,10 +10370,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "consumes": [ "application\/json" ], @@ -10215,7 +10381,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10233,7 +10399,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10313,10 +10479,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "consumes": [ "application\/json" ], @@ -10324,7 +10490,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -10342,7 +10508,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10430,10 +10596,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "consumes": [ "application\/json" ], @@ -10441,7 +10607,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10459,7 +10625,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10549,10 +10715,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "consumes": [ "application\/json" ], @@ -10560,7 +10726,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10578,7 +10744,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10668,10 +10834,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "consumes": [ "application\/json" ], @@ -10679,7 +10845,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10697,7 +10863,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10789,10 +10955,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "consumes": [ "application\/json" ], @@ -10800,7 +10966,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10818,7 +10984,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10908,10 +11074,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "consumes": [ "application\/json" ], @@ -10919,7 +11085,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10937,7 +11103,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11029,10 +11195,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "consumes": [ "application\/json" ], @@ -11040,7 +11206,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11058,7 +11224,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11136,10 +11302,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "consumes": [ "application\/json" ], @@ -11147,7 +11313,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11165,7 +11331,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11245,10 +11411,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "consumes": [ "application\/json" ], @@ -11256,7 +11422,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -11274,7 +11440,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11379,10 +11545,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "consumes": [ "application\/json" ], @@ -11390,7 +11556,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -11408,7 +11574,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11499,10 +11665,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "consumes": [ "application\/json" ], @@ -11510,7 +11676,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11528,7 +11694,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11614,10 +11780,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "consumes": [ "application\/json" ], @@ -11625,7 +11791,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -11643,7 +11809,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11721,10 +11887,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "consumes": [ "application\/json" ], @@ -11732,7 +11898,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11750,7 +11916,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11830,16 +11996,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -11888,7 +12054,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11937,13 +12103,13 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -11958,7 +12124,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12006,10 +12172,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12017,7 +12183,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12035,7 +12201,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12111,16 +12277,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12138,7 +12304,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12192,7 +12358,7 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "consumes": [ "application\/json" ], @@ -12200,7 +12366,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -12218,7 +12384,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12319,16 +12485,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -12346,7 +12512,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12395,13 +12561,13 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -12416,7 +12582,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12464,16 +12630,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -12491,7 +12657,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -12548,7 +12714,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -12556,7 +12722,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -12574,7 +12740,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -12589,9 +12755,8 @@ { "name": "createRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -12617,7 +12782,7 @@ { "name": "createRows", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -12712,7 +12877,7 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "consumes": [ "application\/json" ], @@ -12720,7 +12885,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -12738,7 +12903,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12753,7 +12918,7 @@ { "name": "upsertRows", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -12820,7 +12985,7 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "consumes": [ "application\/json" ], @@ -12828,7 +12993,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -12846,7 +13011,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12913,7 +13078,7 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "consumes": [ "application\/json" ], @@ -12921,7 +13086,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -12939,7 +13104,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -12999,16 +13164,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13026,7 +13191,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13091,7 +13256,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -13099,7 +13264,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13117,7 +13282,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -13132,9 +13297,8 @@ { "name": "upsertRow", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -13213,7 +13377,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -13221,7 +13385,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -13239,7 +13403,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -13316,13 +13480,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -13337,7 +13501,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -13389,10 +13553,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "consumes": [ "application\/json" ], @@ -13400,7 +13564,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -13418,7 +13582,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -13496,10 +13660,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "consumes": [ "application\/json" ], @@ -13507,7 +13671,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -13525,7 +13689,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -15411,7 +15575,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } @@ -33344,9 +33508,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -33389,6 +33568,28 @@ }, "x-example": [], "x-nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -33399,23 +33600,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -33461,27 +33646,18 @@ }, "x-example": [], "x-nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index b28e544566..44f691f055 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -4610,10 +4610,9 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -4845,10 +4844,9 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5108,16 +5106,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -5135,7 +5133,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -5190,7 +5188,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -5198,7 +5196,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5216,7 +5214,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -5230,10 +5228,9 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -5255,30 +5252,6 @@ } ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." - }, - { - "name": "createRows", - "auth": { - "Admin": [], - "Key": [] - }, - "parameters": [ - "databaseId", - "tableId", - "rows" - ], - "required": [ - "databaseId", - "tableId", - "rows" - ], - "responses": [ - { - "code": 201, - "model": "#\/definitions\/rowList" - } - ], - "description": "Create new Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console." } ], "auth": { @@ -5351,16 +5324,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -5378,7 +5351,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -5441,7 +5414,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -5449,7 +5422,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -5467,7 +5440,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -5481,10 +5454,9 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -5561,7 +5533,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -5569,7 +5541,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -5587,7 +5559,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -5662,13 +5634,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -5683,7 +5655,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -5914,7 +5886,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index ba212cba1a..d80f7421ed 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -4716,6 +4716,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4788,6 +4822,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4870,6 +4938,40 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "listUsage", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabases" + } + ], + "description": "List usage metrics and statistics for all databases in the project. You can view the total number of databases, collections\/tables, documents\/rows, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "listDatabaseUsage", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabases" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4940,6 +5042,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -4999,6 +5135,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -5077,6 +5247,38 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -8264,10 +8466,9 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8292,9 +8493,9 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -8430,9 +8631,9 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -8820,10 +9021,9 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -9930,86 +10130,16 @@ ] } }, - "\/databases\/{databaseId}\/logs": { - "get": { - "summary": "List database logs", - "operationId": "databasesListLogs", - "consumes": [], - "produces": [ - "application\/json" - ], - "tags": [ - "databases" - ], - "description": "Get the database activity logs list by its unique ID.", - "responses": { - "200": { - "description": "Logs List", - "schema": { - "$ref": "#\/definitions\/logList" - } - } - }, - "deprecated": false, - "x-appwrite": { - "method": "listLogs", - "group": "logs", - "weight": 321, - "cookies": false, - "type": "", - "demo": "databases\/list-logs.md", - "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", - "rate-limit": 0, - "rate-time": 3600, - "rate-key": "url:{url},ip:{ip}", - "scope": "databases.read", - "platforms": [ - "console" - ], - "packaging": false, - "auth": { - "Project": [] - } - }, - "security": [ - { - "Project": [] - } - ], - "parameters": [ - { - "name": "databaseId", - "description": "Database ID.", - "required": true, - "type": "string", - "x-example": "", - "in": "path" - }, - { - "name": "queries", - "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", - "required": false, - "type": "array", - "collectionFormat": "multi", - "items": { - "type": "string" - }, - "default": [], - "in": "query" - } - ] - } - }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -10022,12 +10152,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -10081,7 +10211,7 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "consumes": [ "application\/json" ], @@ -10089,7 +10219,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -10102,12 +10232,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10185,16 +10315,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -10207,12 +10337,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10253,7 +10383,7 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "consumes": [ "application\/json" ], @@ -10261,7 +10391,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -10274,12 +10404,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10359,13 +10489,13 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -10375,12 +10505,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -10420,16 +10550,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -10447,7 +10577,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -10499,10 +10629,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "consumes": [ "application\/json" ], @@ -10510,7 +10640,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -10528,7 +10658,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10605,10 +10735,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "consumes": [ "application\/json" ], @@ -10616,7 +10746,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10634,7 +10764,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10713,10 +10843,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "consumes": [ "application\/json" ], @@ -10724,7 +10854,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -10742,7 +10872,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10819,10 +10949,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "consumes": [ "application\/json" ], @@ -10830,7 +10960,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10848,7 +10978,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10927,10 +11057,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "consumes": [ "application\/json" ], @@ -10938,7 +11068,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10956,7 +11086,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11033,10 +11163,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "consumes": [ "application\/json" ], @@ -11044,7 +11174,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11062,7 +11192,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11141,10 +11271,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "consumes": [ "application\/json" ], @@ -11152,7 +11282,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -11170,7 +11300,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11257,10 +11387,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "consumes": [ "application\/json" ], @@ -11268,7 +11398,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11286,7 +11416,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11375,10 +11505,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "consumes": [ "application\/json" ], @@ -11386,7 +11516,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11404,7 +11534,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11493,10 +11623,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "consumes": [ "application\/json" ], @@ -11504,7 +11634,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11522,7 +11652,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11613,10 +11743,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "consumes": [ "application\/json" ], @@ -11624,7 +11754,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -11642,7 +11772,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11731,10 +11861,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "consumes": [ "application\/json" ], @@ -11742,7 +11872,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11760,7 +11890,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11851,10 +11981,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "consumes": [ "application\/json" ], @@ -11862,7 +11992,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11880,7 +12010,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11957,10 +12087,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "consumes": [ "application\/json" ], @@ -11968,7 +12098,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11986,7 +12116,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12065,10 +12195,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12076,7 +12206,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12094,7 +12224,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12198,10 +12328,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "consumes": [ "application\/json" ], @@ -12209,7 +12339,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -12227,7 +12357,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12317,10 +12447,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "consumes": [ "application\/json" ], @@ -12328,7 +12458,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12346,7 +12476,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12431,10 +12561,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "consumes": [ "application\/json" ], @@ -12442,7 +12572,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -12460,7 +12590,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12537,10 +12667,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "consumes": [ "application\/json" ], @@ -12548,7 +12678,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -12566,7 +12696,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12645,16 +12775,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -12703,7 +12833,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12751,13 +12881,13 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -12772,7 +12902,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12819,10 +12949,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12830,7 +12960,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12848,7 +12978,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12923,16 +13053,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12950,7 +13080,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -13003,7 +13133,7 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "consumes": [ "application\/json" ], @@ -13011,7 +13141,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -13029,7 +13159,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13129,16 +13259,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -13156,7 +13286,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13204,13 +13334,13 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -13225,7 +13355,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -13272,16 +13402,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/logs": { "get": { "summary": "List table logs", - "operationId": "tablesListLogs", + "operationId": "gridsListTableLogs", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get the table activity logs list by its unique ID.", "responses": { @@ -13294,12 +13424,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "listLogs", - "group": "tables", + "method": "listTableLogs", + "group": "grids", "weight": 375, "cookies": false, "type": "", - "demo": "tables\/list-logs.md", + "demo": "grids\/list-table-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -13350,16 +13480,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -13377,7 +13507,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -13432,7 +13562,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -13440,7 +13570,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13458,7 +13588,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -13472,10 +13602,9 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13500,9 +13629,9 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [ "databaseId", @@ -13594,7 +13723,7 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "consumes": [ "application\/json" ], @@ -13602,7 +13731,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -13620,7 +13749,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13634,9 +13763,9 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { - "Admin": [], - "Key": [] + "Project": [] }, "parameters": [], "required": [], @@ -13701,7 +13830,7 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "consumes": [ "application\/json" ], @@ -13709,7 +13838,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -13727,7 +13856,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -13793,7 +13922,7 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "consumes": [ "application\/json" ], @@ -13801,7 +13930,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -13819,7 +13948,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -13878,16 +14007,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13905,7 +14034,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13968,7 +14097,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -13976,7 +14105,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13994,7 +14123,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -14008,10 +14137,9 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [] }, "parameters": [], "required": [], @@ -14088,7 +14216,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -14096,7 +14224,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -14114,7 +14242,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -14189,13 +14317,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -14210,7 +14338,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -14260,16 +14388,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/logs": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/logs": { "get": { "summary": "List row logs", - "operationId": "tablesListRowLogs", + "operationId": "gridsListRowLogs", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get the row activity logs list by its unique ID.", "responses": { @@ -14287,7 +14415,7 @@ "weight": 413, "cookies": false, "type": "", - "demo": "tables\/list-row-logs.md", + "demo": "grids\/list-row-logs.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row-logs.md", "rate-limit": 0, "rate-time": 3600, @@ -14346,10 +14474,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "consumes": [ "application\/json" ], @@ -14357,7 +14485,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -14375,7 +14503,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14452,10 +14580,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "consumes": [ "application\/json" ], @@ -14463,7 +14591,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -14481,7 +14609,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -14558,16 +14686,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/usage": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/usage": { "get": { "summary": "Get table usage stats", - "operationId": "tablesGetUsage", + "operationId": "gridsGetTableUsage", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get usage metrics and statistics for a table. Returning the total number of rows. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days.", "responses": { @@ -14580,12 +14708,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "getUsage", + "method": "getTableUsage", "group": null, "weight": 376, "cookies": false, "type": "", - "demo": "tables\/get-usage.md", + "demo": "grids\/get-table-usage.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table-usage.md", "rate-limit": 0, "rate-time": 3600, @@ -14624,7 +14752,7 @@ "30d", "90d" ], - "x-enum-name": "DatabaseUsageRange", + "x-enum-name": "GridUsageRange", "x-enum-keys": [ "Twenty Four Hours", "Thirty Days", @@ -14644,6 +14772,110 @@ ] } }, + "\/databases\/{databaseId}\/logs": { + "get": { + "summary": "List database logs", + "operationId": "databasesListLogs", + "consumes": [], + "produces": [ + "application\/json" + ], + "tags": [ + "databases" + ], + "description": "Get the database activity logs list by its unique ID.", + "responses": { + "200": { + "description": "Logs List", + "schema": { + "$ref": "#\/definitions\/logList" + } + } + }, + "deprecated": false, + "x-appwrite": { + "method": "listLogs", + "group": "logs", + "weight": 321, + "cookies": false, + "type": "", + "demo": "databases\/list-logs.md", + "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-logs.md", + "rate-limit": 0, + "rate-time": 3600, + "rate-key": "url:{url},ip:{ip}", + "scope": "databases.read", + "platforms": [ + "console" + ], + "packaging": false, + "methods": [ + { + "name": "listLogs", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/logList" + } + ], + "description": "Get the database activity logs list by its unique ID." + }, + { + "name": "listDatabaseLogs", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/logList" + } + ], + "description": "" + } + ], + "auth": { + "Project": [] + } + }, + "security": [ + { + "Project": [] + } + ], + "parameters": [ + { + "name": "databaseId", + "description": "Database ID.", + "required": true, + "type": "string", + "x-example": "", + "in": "path" + }, + { + "name": "queries", + "description": "Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https:\/\/appwrite.io\/docs\/queries). Only supported methods are limit and offset", + "required": false, + "type": "array", + "collectionFormat": "multi", + "items": { + "type": "string" + }, + "default": [], + "in": "query" + } + ] + } + }, "\/databases\/{databaseId}\/usage": { "get": { "summary": "Get database usage stats", @@ -14681,6 +14913,40 @@ "console" ], "packaging": false, + "methods": [ + { + "name": "getDatabaseUsage", + "namespace": "databases", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabase" + } + ], + "description": "Get usage metrics and statistics for a database. You can view the total number of collections, documents, and storage usage. The response includes both current totals and historical data over time. Use the optional range parameter to specify the time window for historical data: 24h (last 24 hours), 30d (last 30 days), or 90d (last 90 days). If not specified, range defaults to 30 days." + }, + { + "name": "getDatabaseUsage", + "namespace": "grids", + "auth": { + "Project": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/usageDatabase" + } + ], + "description": "" + } + ], "auth": { "Project": [] } @@ -16731,7 +16997,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } @@ -43629,9 +43895,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -43674,6 +43955,28 @@ }, "x-example": [], "x-nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -43684,23 +43987,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -43746,27 +44033,18 @@ }, "x-example": [], "x-nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { @@ -45922,6 +46200,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45934,6 +46217,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt" ] }, @@ -45966,6 +46250,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -45983,6 +46272,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "framework" ] @@ -46016,6 +46306,11 @@ "description": "Is VCS (Version Control System) repository private?", "x-example": true }, + "defaultBranch": { + "type": "string", + "description": "VCS (Version Control System) repository's default branch name.", + "x-example": "main" + }, "pushedAt": { "type": "string", "description": "Last commit date in ISO 8601 format.", @@ -46033,6 +46328,7 @@ "organization", "provider", "private", + "defaultBranch", "pushedAt", "runtime" ] diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 9bd6c58fcc..3ac203ee2c 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -4222,6 +4222,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "list", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "Get a list of all databases from the current Appwrite project. You can use the search parameter to filter your results." + }, + { + "name": "listDatabases", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/databaseList" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4295,6 +4331,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "create", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "Create a new Database.\n" + }, + { + "name": "createDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 201, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4378,6 +4450,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "get", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Get a database by its unique ID. This endpoint response returns a JSON object with the database metadata." + }, + { + "name": "getDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4438,6 +4546,42 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "update", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "Update a database by its unique ID." + }, + { + "name": "updateDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 200, + "model": "#\/definitions\/database" + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -4517,6 +4661,40 @@ "server" ], "packaging": false, + "methods": [ + { + "name": "delete", + "namespace": "databases", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "Delete a database by its unique ID. Only API keys with with databases.write scope can delete a database." + }, + { + "name": "deleteDatabase", + "namespace": "grids", + "auth": { + "Project": [], + "Key": [] + }, + "parameters": [], + "required": [], + "responses": [ + { + "code": 204 + } + ], + "description": "" + } + ], "auth": { "Project": [], "Key": [] @@ -7735,10 +7913,10 @@ "methods": [ { "name": "createDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -7763,8 +7941,9 @@ }, { "name": "createDocuments", + "namespace": "databases", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -7903,8 +8082,9 @@ "methods": [ { "name": "upsertDocuments", + "namespace": "databases", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -8298,10 +8478,10 @@ "methods": [ { "name": "upsertDocument", + "namespace": "databases", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -9158,16 +9338,16 @@ ] } }, - "\/databases\/{databaseId}\/tables": { + "\/databases\/{databaseId}\/grids\/tables": { "get": { "summary": "List tables", - "operationId": "tablesList", + "operationId": "gridsListTables", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all tables that belong to the provided databaseId. You can use the search parameter to filter your results.", "responses": { @@ -9180,12 +9360,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "list", + "method": "listTables", "group": null, "weight": 374, "cookies": false, "type": "", - "demo": "tables\/list.md", + "demo": "grids\/list-tables.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-tables.md", "rate-limit": 0, "rate-time": 3600, @@ -9240,7 +9420,7 @@ }, "post": { "summary": "Create table", - "operationId": "tablesCreate", + "operationId": "gridsCreateTable", "consumes": [ "application\/json" ], @@ -9248,7 +9428,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Table. Before using this route, you should create a new database resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -9261,12 +9441,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "create", + "method": "createTable", "group": null, "weight": 370, "cookies": false, "type": "", - "demo": "tables\/create.md", + "demo": "grids\/create-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9345,16 +9525,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}": { "get": { "summary": "Get table", - "operationId": "tablesGet", + "operationId": "gridsGetTable", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a table by its unique ID. This endpoint response returns a JSON object with the table metadata.", "responses": { @@ -9367,12 +9547,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "get", + "method": "getTable", "group": null, "weight": 371, "cookies": false, "type": "", - "demo": "tables\/get.md", + "demo": "grids\/get-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9414,7 +9594,7 @@ }, "put": { "summary": "Update table", - "operationId": "tablesUpdate", + "operationId": "gridsUpdateTable", "consumes": [ "application\/json" ], @@ -9422,7 +9602,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a table by its unique ID.", "responses": { @@ -9435,12 +9615,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "update", + "method": "updateTable", "group": null, "weight": 372, "cookies": false, "type": "", - "demo": "tables\/update.md", + "demo": "grids\/update-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9521,13 +9701,13 @@ }, "delete": { "summary": "Delete table", - "operationId": "tablesDelete", + "operationId": "gridsDeleteTable", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a table by its unique ID. Only users with write permissions have access to delete this resource.", "responses": { @@ -9537,12 +9717,12 @@ }, "deprecated": false, "x-appwrite": { - "method": "delete", + "method": "deleteTable", "group": null, "weight": 373, "cookies": false, "type": "", - "demo": "tables\/delete.md", + "demo": "grids\/delete-table.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-table.md", "rate-limit": 0, "rate-time": 3600, @@ -9583,16 +9763,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns": { "get": { "summary": "List columns", - "operationId": "tablesListColumns", + "operationId": "gridsListColumns", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List attributes in the collection.", "responses": { @@ -9610,7 +9790,7 @@ "weight": 379, "cookies": false, "type": "", - "demo": "tables\/list-columns.md", + "demo": "grids\/list-columns.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-attributes.md", "rate-limit": 0, "rate-time": 3600, @@ -9663,10 +9843,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean": { "post": { "summary": "Create boolean column", - "operationId": "tablesCreateBooleanColumn", + "operationId": "gridsCreateBooleanColumn", "consumes": [ "application\/json" ], @@ -9674,7 +9854,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a boolean column.\n", "responses": { @@ -9692,7 +9872,7 @@ "weight": 380, "cookies": false, "type": "", - "demo": "tables\/create-boolean-column.md", + "demo": "grids\/create-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9770,10 +9950,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/boolean\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/boolean\/{key}": { "patch": { "summary": "Update boolean column", - "operationId": "tablesUpdateBooleanColumn", + "operationId": "gridsUpdateBooleanColumn", "consumes": [ "application\/json" ], @@ -9781,7 +9961,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a boolean column. Changing the `default` value will not update already existing rows.", "responses": { @@ -9799,7 +9979,7 @@ "weight": 381, "cookies": false, "type": "", - "demo": "tables\/update-boolean-column.md", + "demo": "grids\/update-boolean-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-boolean-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9879,10 +10059,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime": { "post": { "summary": "Create datetime column", - "operationId": "tablesCreateDatetimeColumn", + "operationId": "gridsCreateDatetimeColumn", "consumes": [ "application\/json" ], @@ -9890,7 +10070,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a date time column according to the ISO 8601 standard.", "responses": { @@ -9908,7 +10088,7 @@ "weight": 382, "cookies": false, "type": "", - "demo": "tables\/create-datetime-column.md", + "demo": "grids\/create-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -9986,10 +10166,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/datetime\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/datetime\/{key}": { "patch": { "summary": "Update dateTime column", - "operationId": "tablesUpdateDatetimeColumn", + "operationId": "gridsUpdateDatetimeColumn", "consumes": [ "application\/json" ], @@ -9997,7 +10177,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a date time column. Changing the `default` value will not update already existing rows.", "responses": { @@ -10015,7 +10195,7 @@ "weight": 383, "cookies": false, "type": "", - "demo": "tables\/update-datetime-column.md", + "demo": "grids\/update-datetime-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-datetime-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10095,10 +10275,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email": { "post": { "summary": "Create email column", - "operationId": "tablesCreateEmailColumn", + "operationId": "gridsCreateEmailColumn", "consumes": [ "application\/json" ], @@ -10106,7 +10286,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an email column.\n", "responses": { @@ -10124,7 +10304,7 @@ "weight": 384, "cookies": false, "type": "", - "demo": "tables\/create-email-column.md", + "demo": "grids\/create-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10202,10 +10382,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/email\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/email\/{key}": { "patch": { "summary": "Update email column", - "operationId": "tablesUpdateEmailColumn", + "operationId": "gridsUpdateEmailColumn", "consumes": [ "application\/json" ], @@ -10213,7 +10393,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an email column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10231,7 +10411,7 @@ "weight": 385, "cookies": false, "type": "", - "demo": "tables\/update-email-column.md", + "demo": "grids\/update-email-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-email-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10311,10 +10491,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum": { "post": { "summary": "Create enum column", - "operationId": "tablesCreateEnumColumn", + "operationId": "gridsCreateEnumColumn", "consumes": [ "application\/json" ], @@ -10322,7 +10502,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an enumeration column. The `elements` param acts as a white-list of accepted values for this column.", "responses": { @@ -10340,7 +10520,7 @@ "weight": 386, "cookies": false, "type": "", - "demo": "tables\/create-enum-column.md", + "demo": "grids\/create-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10428,10 +10608,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/enum\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/enum\/{key}": { "patch": { "summary": "Update enum column", - "operationId": "tablesUpdateEnumColumn", + "operationId": "gridsUpdateEnumColumn", "consumes": [ "application\/json" ], @@ -10439,7 +10619,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an enum column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10457,7 +10637,7 @@ "weight": 387, "cookies": false, "type": "", - "demo": "tables\/update-enum-column.md", + "demo": "grids\/update-enum-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-enum-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10547,10 +10727,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float": { "post": { "summary": "Create float column", - "operationId": "tablesCreateFloatColumn", + "operationId": "gridsCreateFloatColumn", "consumes": [ "application\/json" ], @@ -10558,7 +10738,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a float column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10576,7 +10756,7 @@ "weight": 388, "cookies": false, "type": "", - "demo": "tables\/create-float-column.md", + "demo": "grids\/create-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10666,10 +10846,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/float\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/float\/{key}": { "patch": { "summary": "Update float column", - "operationId": "tablesUpdateFloatColumn", + "operationId": "gridsUpdateFloatColumn", "consumes": [ "application\/json" ], @@ -10677,7 +10857,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a float column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10695,7 +10875,7 @@ "weight": 389, "cookies": false, "type": "", - "demo": "tables\/update-float-column.md", + "demo": "grids\/update-float-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-float-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10787,10 +10967,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer": { "post": { "summary": "Create integer column", - "operationId": "tablesCreateIntegerColumn", + "operationId": "gridsCreateIntegerColumn", "consumes": [ "application\/json" ], @@ -10798,7 +10978,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create an integer column. Optionally, minimum and maximum values can be provided.\n", "responses": { @@ -10816,7 +10996,7 @@ "weight": 390, "cookies": false, "type": "", - "demo": "tables\/create-integer-column.md", + "demo": "grids\/create-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -10906,10 +11086,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/integer\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/integer\/{key}": { "patch": { "summary": "Update integer column", - "operationId": "tablesUpdateIntegerColumn", + "operationId": "gridsUpdateIntegerColumn", "consumes": [ "application\/json" ], @@ -10917,7 +11097,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an integer column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -10935,7 +11115,7 @@ "weight": 391, "cookies": false, "type": "", - "demo": "tables\/update-integer-column.md", + "demo": "grids\/update-integer-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-integer-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11027,10 +11207,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip": { "post": { "summary": "Create IP address column", - "operationId": "tablesCreateIpColumn", + "operationId": "gridsCreateIpColumn", "consumes": [ "application\/json" ], @@ -11038,7 +11218,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create IP address column.\n", "responses": { @@ -11056,7 +11236,7 @@ "weight": 392, "cookies": false, "type": "", - "demo": "tables\/create-ip-column.md", + "demo": "grids\/create-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11134,10 +11314,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/ip\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/ip\/{key}": { "patch": { "summary": "Update IP address column", - "operationId": "tablesUpdateIpColumn", + "operationId": "gridsUpdateIpColumn", "consumes": [ "application\/json" ], @@ -11145,7 +11325,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an ip column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11163,7 +11343,7 @@ "weight": 393, "cookies": false, "type": "", - "demo": "tables\/update-ip-column.md", + "demo": "grids\/update-ip-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-ip-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11243,10 +11423,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/relationship": { "post": { "summary": "Create relationship column", - "operationId": "tablesCreateRelationshipColumn", + "operationId": "gridsCreateRelationshipColumn", "consumes": [ "application\/json" ], @@ -11254,7 +11434,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -11272,7 +11452,7 @@ "weight": 394, "cookies": false, "type": "", - "demo": "tables\/create-relationship-column.md", + "demo": "grids\/create-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11377,10 +11557,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string": { "post": { "summary": "Create string column", - "operationId": "tablesCreateStringColumn", + "operationId": "gridsCreateStringColumn", "consumes": [ "application\/json" ], @@ -11388,7 +11568,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a string column.\n", "responses": { @@ -11406,7 +11586,7 @@ "weight": 396, "cookies": false, "type": "", - "demo": "tables\/create-string-column.md", + "demo": "grids\/create-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11497,10 +11677,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/string\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/string\/{key}": { "patch": { "summary": "Update string column", - "operationId": "tablesUpdateStringColumn", + "operationId": "gridsUpdateStringColumn", "consumes": [ "application\/json" ], @@ -11508,7 +11688,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a string column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11526,7 +11706,7 @@ "weight": 397, "cookies": false, "type": "", - "demo": "tables\/update-string-column.md", + "demo": "grids\/update-string-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-string-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11612,10 +11792,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url": { "post": { "summary": "Create URL column", - "operationId": "tablesCreateUrlColumn", + "operationId": "gridsCreateUrlColumn", "consumes": [ "application\/json" ], @@ -11623,7 +11803,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a URL column.\n", "responses": { @@ -11641,7 +11821,7 @@ "weight": 398, "cookies": false, "type": "", - "demo": "tables\/create-url-column.md", + "demo": "grids\/create-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11719,10 +11899,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/url\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/url\/{key}": { "patch": { "summary": "Update URL column", - "operationId": "tablesUpdateUrlColumn", + "operationId": "gridsUpdateUrlColumn", "consumes": [ "application\/json" ], @@ -11730,7 +11910,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update an url column. Changing the `default` value will not update already existing rows.\n", "responses": { @@ -11748,7 +11928,7 @@ "weight": 399, "cookies": false, "type": "", - "demo": "tables\/update-url-column.md", + "demo": "grids\/update-url-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-url-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11828,16 +12008,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}": { "get": { "summary": "Get column", - "operationId": "tablesGetColumn", + "operationId": "gridsGetColumn", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get column by ID.", "responses": { @@ -11886,7 +12066,7 @@ "weight": 377, "cookies": false, "type": "", - "demo": "tables\/get-column.md", + "demo": "grids\/get-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-column.md", "rate-limit": 0, "rate-time": 3600, @@ -11935,13 +12115,13 @@ }, "delete": { "summary": "Delete column", - "operationId": "tablesDeleteColumn", + "operationId": "gridsDeleteColumn", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Deletes a column.", "responses": { @@ -11956,7 +12136,7 @@ "weight": 378, "cookies": false, "type": "", - "demo": "tables\/delete-column.md", + "demo": "grids\/delete-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12004,10 +12184,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/columns\/{key}\/relationship": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/columns\/{key}\/relationship": { "patch": { "summary": "Update relationship column", - "operationId": "tablesUpdateRelationshipColumn", + "operationId": "gridsUpdateRelationshipColumn", "consumes": [ "application\/json" ], @@ -12015,7 +12195,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update relationship column. [Learn more about relationship columns](https:\/\/appwrite.io\/docs\/databases-relationships#relationship-columns).\n", "responses": { @@ -12033,7 +12213,7 @@ "weight": 395, "cookies": false, "type": "", - "demo": "tables\/update-relationship-column.md", + "demo": "grids\/update-relationship-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-relationship-column.md", "rate-limit": 0, "rate-time": 3600, @@ -12109,16 +12289,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes": { "get": { "summary": "List indexes", - "operationId": "tablesListIndexes", + "operationId": "gridsListIndexes", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "List indexes in the collection.", "responses": { @@ -12136,7 +12316,7 @@ "weight": 403, "cookies": false, "type": "", - "demo": "tables\/list-indexes.md", + "demo": "grids\/list-indexes.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-indexes.md", "rate-limit": 0, "rate-time": 3600, @@ -12190,7 +12370,7 @@ }, "post": { "summary": "Create index", - "operationId": "tablesCreateIndex", + "operationId": "gridsCreateIndex", "consumes": [ "application\/json" ], @@ -12198,7 +12378,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Creates an index on the attributes listed. Your index should include all the attributes you will query in a single request.\nAttributes can be `key`, `fulltext`, and `unique`.", "responses": { @@ -12216,7 +12396,7 @@ "weight": 400, "cookies": false, "type": "", - "demo": "tables\/create-index.md", + "demo": "grids\/create-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12317,16 +12497,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/indexes\/{key}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/indexes\/{key}": { "get": { "summary": "Get index", - "operationId": "tablesGetIndex", + "operationId": "gridsGetIndex", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get index by ID.", "responses": { @@ -12344,7 +12524,7 @@ "weight": 401, "cookies": false, "type": "", - "demo": "tables\/get-index.md", + "demo": "grids\/get-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12393,13 +12573,13 @@ }, "delete": { "summary": "Delete index", - "operationId": "tablesDeleteIndex", + "operationId": "gridsDeleteIndex", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete an index.", "responses": { @@ -12414,7 +12594,7 @@ "weight": 402, "cookies": false, "type": "", - "demo": "tables\/delete-index.md", + "demo": "grids\/delete-index.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-index.md", "rate-limit": 0, "rate-time": 3600, @@ -12462,16 +12642,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": { "get": { "summary": "List rows", - "operationId": "tablesListRows", + "operationId": "gridsListRows", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a list of all the user's rows in a given table. You can use the query params to filter your results.", "responses": { @@ -12489,7 +12669,7 @@ "weight": 412, "cookies": false, "type": "", - "demo": "tables\/list-rows.md", + "demo": "grids\/list-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/list-rows.md", "rate-limit": 0, "rate-time": 3600, @@ -12546,7 +12726,7 @@ }, "post": { "summary": "Create row", - "operationId": "tablesCreateRow", + "operationId": "gridsCreateRow", "consumes": [ "application\/json" ], @@ -12554,7 +12734,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create a new Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -12572,7 +12752,7 @@ "weight": 404, "cookies": false, "type": "", - "demo": "tables\/create-row.md", + "demo": "grids\/create-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/create-row.md", "rate-limit": 120, "rate-time": 60, @@ -12586,10 +12766,10 @@ "methods": [ { "name": "createRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [ "databaseId", @@ -12614,8 +12794,9 @@ }, { "name": "createRows", + "namespace": "grids", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [ @@ -12710,7 +12891,7 @@ }, "put": { "summary": "Create or update rows", - "operationId": "tablesUpsertRows", + "operationId": "gridsUpsertRows", "consumes": [ "application\/json" ], @@ -12718,7 +12899,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update Rows. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.\n", "responses": { @@ -12736,7 +12917,7 @@ "weight": 409, "cookies": false, "type": "", - "demo": "tables\/upsert-rows.md", + "demo": "grids\/upsert-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12750,8 +12931,9 @@ "methods": [ { "name": "upsertRows", + "namespace": "grids", "auth": { - "Admin": [], + "Project": [], "Key": [] }, "parameters": [], @@ -12818,7 +13000,7 @@ }, "patch": { "summary": "Update rows", - "operationId": "tablesUpdateRows", + "operationId": "gridsUpdateRows", "consumes": [ "application\/json" ], @@ -12826,7 +13008,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update all rows that match your queries, if no queries are submitted then all rows are updated. You can pass only specific fields to be updated.", "responses": { @@ -12844,7 +13026,7 @@ "weight": 407, "cookies": false, "type": "", - "demo": "tables\/update-rows.md", + "demo": "grids\/update-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-rows.md", "rate-limit": 120, "rate-time": 60, @@ -12911,7 +13093,7 @@ }, "delete": { "summary": "Delete rows", - "operationId": "tablesDeleteRows", + "operationId": "gridsDeleteRows", "consumes": [ "application\/json" ], @@ -12919,7 +13101,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Bulk delete rows using queries, if no queries are passed then all rows are deleted.", "responses": { @@ -12937,7 +13119,7 @@ "weight": 411, "cookies": false, "type": "", - "demo": "tables\/delete-rows.md", + "demo": "grids\/delete-rows.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-rows.md", "rate-limit": 60, "rate-time": 60, @@ -12997,16 +13179,16 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": { "get": { "summary": "Get row", - "operationId": "tablesGetRow", + "operationId": "gridsGetRow", "consumes": [], "produces": [ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.", "responses": { @@ -13024,7 +13206,7 @@ "weight": 405, "cookies": false, "type": "", - "demo": "tables\/get-row.md", + "demo": "grids\/get-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/get-row.md", "rate-limit": 0, "rate-time": 3600, @@ -13089,7 +13271,7 @@ }, "put": { "summary": "Create or update a row", - "operationId": "tablesUpsertRow", + "operationId": "gridsUpsertRow", "consumes": [ "application\/json" ], @@ -13097,7 +13279,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Create or update a Row. Before using this route, you should create a new table resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateTable) API or directly from your database console.", "responses": { @@ -13115,7 +13297,7 @@ "weight": 408, "cookies": false, "type": "", - "demo": "tables\/upsert-row.md", + "demo": "grids\/upsert-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/upsert-row.md", "rate-limit": 120, "rate-time": 60, @@ -13129,10 +13311,10 @@ "methods": [ { "name": "upsertRow", + "namespace": "grids", "auth": { - "Session": [], - "Key": [], - "JWT": [] + "Project": [], + "Session": [] }, "parameters": [], "required": [], @@ -13211,7 +13393,7 @@ }, "patch": { "summary": "Update row", - "operationId": "tablesUpdateRow", + "operationId": "gridsUpdateRow", "consumes": [ "application\/json" ], @@ -13219,7 +13401,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.", "responses": { @@ -13237,7 +13419,7 @@ "weight": 406, "cookies": false, "type": "", - "demo": "tables\/update-row.md", + "demo": "grids\/update-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/update-row.md", "rate-limit": 120, "rate-time": 60, @@ -13314,13 +13496,13 @@ }, "delete": { "summary": "Delete row", - "operationId": "tablesDeleteRow", + "operationId": "gridsDeleteRow", "consumes": [ "application\/json" ], "produces": [], "tags": [ - "tables" + "grids" ], "description": "Delete a row by its unique ID.", "responses": { @@ -13335,7 +13517,7 @@ "weight": 410, "cookies": false, "type": "", - "demo": "tables\/delete-row.md", + "demo": "grids\/delete-row.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/delete-row.md", "rate-limit": 60, "rate-time": 60, @@ -13387,10 +13569,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/decrement": { "patch": { "summary": "Decrement row column", - "operationId": "tablesDecrementRowColumn", + "operationId": "gridsDecrementRowColumn", "consumes": [ "application\/json" ], @@ -13398,7 +13580,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Decrement a specific column of a row by a given value.", "responses": { @@ -13416,7 +13598,7 @@ "weight": 415, "cookies": false, "type": "", - "demo": "tables\/decrement-row-column.md", + "demo": "grids\/decrement-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/decrement-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -13494,10 +13676,10 @@ ] } }, - "\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { + "\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}\/{column}\/increment": { "patch": { "summary": "Increment row column", - "operationId": "tablesIncrementRowColumn", + "operationId": "gridsIncrementRowColumn", "consumes": [ "application\/json" ], @@ -13505,7 +13687,7 @@ "application\/json" ], "tags": [ - "tables" + "grids" ], "description": "Increment a specific column of a row by a given value.", "responses": { @@ -13523,7 +13705,7 @@ "weight": 414, "cookies": false, "type": "", - "demo": "tables\/increment-row-column.md", + "demo": "grids\/increment-row-column.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/databases\/increment-row-column.md", "rate-limit": 120, "rate-time": 60, @@ -15409,7 +15591,7 @@ "type": "string", "description": "Scheduled execution time in [ISO 8601](https:\/\/www.iso.org\/iso-8601-date-and-time-format.html) format. DateTime value must be in future with precision in minutes.", "default": null, - "x-example": null + "x-example": "" } } } @@ -33342,9 +33524,24 @@ "description": "Index", "type": "object", "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" + }, + "$createdAt": { + "type": "string", + "description": "Index creation date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, + "$updatedAt": { + "type": "string", + "description": "Index update date in ISO 8601 format.", + "x-example": "2020-10-15T06:38:00.000+00:00" + }, "key": { "type": "string", - "description": "Index Key.", + "description": "Index key.", "x-example": "index1" }, "type": { @@ -33387,6 +33584,28 @@ }, "x-example": [], "x-nullable": true + } + }, + "required": [ + "$id", + "$createdAt", + "$updatedAt", + "key", + "type", + "status", + "error", + "attributes", + "lengths" + ] + }, + "columnIndex": { + "description": "Index", + "type": "object", + "properties": { + "$id": { + "type": "string", + "description": "Index ID.", + "x-example": "5e5ea5c16897e" }, "$createdAt": { "type": "string", @@ -33397,23 +33616,7 @@ "type": "string", "description": "Index update date in ISO 8601 format.", "x-example": "2020-10-15T06:38:00.000+00:00" - } - }, - "required": [ - "key", - "type", - "status", - "error", - "attributes", - "lengths", - "$createdAt", - "$updatedAt" - ] - }, - "columnIndex": { - "description": "Index", - "type": "object", - "properties": { + }, "key": { "type": "string", "description": "Index Key.", @@ -33459,27 +33662,18 @@ }, "x-example": [], "x-nullable": true - }, - "$createdAt": { - "type": "string", - "description": "Index creation date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" - }, - "$updatedAt": { - "type": "string", - "description": "Index update date in ISO 8601 format.", - "x-example": "2020-10-15T06:38:00.000+00:00" } }, "required": [ + "$id", + "$createdAt", + "$updatedAt", "key", "type", "status", "error", "columns", - "lengths", - "$createdAt", - "$updatedAt" + "lengths" ] }, "row": { diff --git a/composer.json b/composer.json index e0c3caf63c..dc13967e21 100644 --- a/composer.json +++ b/composer.json @@ -86,7 +86,7 @@ }, "require-dev": { "ext-fileinfo": "*", - "appwrite/sdk-generator": "0.41.*", + "appwrite/sdk-generator": "dev-feat-multiple-namespaces", "phpunit/phpunit": "9.*", "swoole/ide-helper": "5.1.2", "phpstan/phpstan": "1.8.*", diff --git a/composer.lock b/composer.lock index c092b802e4..d389212bb6 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "497a684d3c93c08d4741f5bb886a5474", + "content-hash": "7f1ef097cd83efca1018c4eb84b7bb05", "packages": [ { "name": "adhocore/jwt", @@ -4810,16 +4810,16 @@ "packages-dev": [ { "name": "appwrite/sdk-generator", - "version": "0.41.23", + "version": "dev-feat-multiple-namespaces", "source": { "type": "git", "url": "https://github.com/appwrite/sdk-generator.git", - "reference": "188dff738ff7b9f1f9209b34ac2092b5456b1001" + "reference": "3130f9a952166f86f680b8385ca4441dcc1b7f0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/188dff738ff7b9f1f9209b34ac2092b5456b1001", - "reference": "188dff738ff7b9f1f9209b34ac2092b5456b1001", + "url": "https://api.github.com/repos/appwrite/sdk-generator/zipball/3130f9a952166f86f680b8385ca4441dcc1b7f0b", + "reference": "3130f9a952166f86f680b8385ca4441dcc1b7f0b", "shasum": "" }, "require": { @@ -4855,9 +4855,9 @@ "description": "Appwrite PHP library for generating API SDKs for multiple programming languages and platforms", "support": { "issues": "https://github.com/appwrite/sdk-generator/issues", - "source": "https://github.com/appwrite/sdk-generator/tree/0.41.23" + "source": "https://github.com/appwrite/sdk-generator/tree/feat-multiple-namespaces" }, - "time": "2025-07-25T06:47:04+00:00" + "time": "2025-07-27T07:52:16+00:00" }, { "name": "doctrine/annotations", @@ -8239,7 +8239,9 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": {}, + "stability-flags": { + "appwrite/sdk-generator": 20 + }, "prefer-stable": false, "prefer-lowest": false, "platform": { diff --git a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php index a58f0b3068..3550157309 100644 --- a/src/Appwrite/SDK/Specification/Format/OpenAPI3.php +++ b/src/Appwrite/SDK/Specification/Format/OpenAPI3.php @@ -215,6 +215,7 @@ class OpenAPI3 extends Format $additionalMethod = [ 'name' => $methodObj->getMethodName(), + 'namespace' => $methodObj->getNamespace(), 'auth' => \array_slice($methodSecurities, 0, $this->authCount), 'parameters' => [], 'required' => [], @@ -237,10 +238,16 @@ class OpenAPI3 extends Format 'model' => \array_map(fn ($m) => '#/components/schemas/' . $m, $response->getModel()) ]; } else { - $additionalMethod['responses'][] = [ + $responseData = [ 'code' => $response->getCode(), - 'model' => '#/components/schemas/' . $response->getModel() ]; + + // lets not assume stuff here! + if ($response->getCode() !== 204) { + $responseData['model'] = '#/components/schemas/' . $response->getModel(); + } + + $additionalMethod['responses'][] = $responseData; } } diff --git a/src/Appwrite/SDK/Specification/Format/Swagger2.php b/src/Appwrite/SDK/Specification/Format/Swagger2.php index 4420cc6736..3a98b4e2c0 100644 --- a/src/Appwrite/SDK/Specification/Format/Swagger2.php +++ b/src/Appwrite/SDK/Specification/Format/Swagger2.php @@ -224,6 +224,7 @@ class Swagger2 extends Format $additionalMethod = [ 'name' => $methodObj->getMethodName(), + 'namespace' => $methodObj->getNamespace(), 'auth' => \array_slice($methodSecurities, 0, $this->authCount), 'parameters' => [], 'required' => [], @@ -247,10 +248,16 @@ class Swagger2 extends Format 'model' => \array_map(fn ($m) => '#/definitions/' . $m, $response->getModel()) ]; } else { - $additionalMethod['responses'][] = [ + $responseData = [ 'code' => $response->getCode(), - 'model' => '#/definitions/' . $response->getModel() ]; + + // lets not assume stuff here! + if ($response->getCode() !== 204) { + $responseData['model'] = '#/definitions/' . $response->getModel(); + } + + $additionalMethod['responses'][] = $responseData; } }