mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 09:28:40 +00:00
commit
767f575984
141 changed files with 8150 additions and 4603 deletions
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
|
@ -146,7 +146,7 @@ jobs:
|
||||||
Avatars,
|
Avatars,
|
||||||
Console,
|
Console,
|
||||||
Databases/Legacy,
|
Databases/Legacy,
|
||||||
Databases/Tables,
|
Databases/Grids,
|
||||||
Functions,
|
Functions,
|
||||||
FunctionsSchedule,
|
FunctionsSchedule,
|
||||||
GraphQL,
|
GraphQL,
|
||||||
|
|
@ -216,7 +216,7 @@ jobs:
|
||||||
Avatars,
|
Avatars,
|
||||||
Console,
|
Console,
|
||||||
Databases/Legacy,
|
Databases/Legacy,
|
||||||
Databases/Tables,
|
Databases/Grids,
|
||||||
Functions,
|
Functions,
|
||||||
FunctionsSchedule,
|
FunctionsSchedule,
|
||||||
GraphQL,
|
GraphQL,
|
||||||
|
|
|
||||||
|
|
@ -1856,7 +1856,6 @@
|
||||||
"client"
|
"client"
|
||||||
],
|
],
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": true,
|
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
}
|
}
|
||||||
|
|
@ -2066,7 +2065,6 @@
|
||||||
"client"
|
"client"
|
||||||
],
|
],
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": true,
|
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
}
|
}
|
||||||
|
|
@ -4381,7 +4379,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.listRows"
|
"replaceWith": "grids.listRows"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4470,15 +4468,14 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.createRow"
|
"replaceWith": "grids.createRow"
|
||||||
},
|
},
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "createDocument",
|
"name": "createDocument",
|
||||||
|
"namespace": "databases",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [
|
"parameters": [
|
||||||
"databaseId",
|
"databaseId",
|
||||||
|
|
@ -4499,7 +4496,11 @@
|
||||||
"model": "#\/components\/schemas\/document"
|
"model": "#\/components\/schemas\/document"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
|
||||||
|
"deprecated": {
|
||||||
|
"since": "1.8.0",
|
||||||
|
"replaceWith": "grids.createRow"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auth": {
|
"auth": {
|
||||||
|
|
@ -4615,7 +4616,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.getRow"
|
"replaceWith": "grids.getRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4714,25 +4715,39 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.upsertRow"
|
"replaceWith": "grids.upsertRow"
|
||||||
},
|
},
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "upsertDocument",
|
"name": "upsertDocument",
|
||||||
|
"namespace": "databases",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [],
|
"parameters": [
|
||||||
"required": [],
|
"databaseId",
|
||||||
|
"collectionId",
|
||||||
|
"documentId",
|
||||||
|
"data",
|
||||||
|
"permissions"
|
||||||
|
],
|
||||||
|
"required": [
|
||||||
|
"databaseId",
|
||||||
|
"collectionId",
|
||||||
|
"documentId",
|
||||||
|
"data"
|
||||||
|
],
|
||||||
"responses": [
|
"responses": [
|
||||||
{
|
{
|
||||||
"code": 201,
|
"code": 201,
|
||||||
"model": "#\/components\/schemas\/document"
|
"model": "#\/components\/schemas\/document"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
|
||||||
|
"deprecated": {
|
||||||
|
"since": "1.8.0",
|
||||||
|
"replaceWith": "grids.upsertRow"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auth": {
|
"auth": {
|
||||||
|
|
@ -4846,7 +4861,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.updateRow"
|
"replaceWith": "grids.updateRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4949,7 +4964,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.deleteRow"
|
"replaceWith": "grids.deleteRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4996,12 +5011,12 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"\/databases\/{databaseId}\/tables\/{tableId}\/rows": {
|
"\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "List rows",
|
"summary": "List rows",
|
||||||
"operationId": "tablesListRows",
|
"operationId": "gridsListRows",
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5023,8 +5038,8 @@
|
||||||
"weight": 412,
|
"weight": 412,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md",
|
||||||
"rate-limit": 0,
|
"rate-limit": 0,
|
||||||
"rate-time": 3600,
|
"rate-time": 3600,
|
||||||
"rate-key": "url:{url},ip:{ip}",
|
"rate-key": "url:{url},ip:{ip}",
|
||||||
|
|
@ -5084,9 +5099,9 @@
|
||||||
},
|
},
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Create row",
|
"summary": "Create row",
|
||||||
"operationId": "tablesCreateRow",
|
"operationId": "gridsCreateRow",
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5108,8 +5123,8 @@
|
||||||
"weight": 404,
|
"weight": 404,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5123,10 +5138,9 @@
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "createRow",
|
"name": "createRow",
|
||||||
|
"namespace": "grids",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [
|
"parameters": [
|
||||||
"databaseId",
|
"databaseId",
|
||||||
|
|
@ -5148,30 +5162,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."
|
"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": {
|
"auth": {
|
||||||
|
|
@ -5246,12 +5236,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": {
|
"\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "Get row",
|
"summary": "Get row",
|
||||||
"operationId": "tablesGetRow",
|
"operationId": "gridsGetRow",
|
||||||
"tags": [
|
"tags": [
|
||||||
"tables"
|
"grids"
|
||||||
],
|
],
|
||||||
"description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.",
|
"description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5273,8 +5263,8 @@
|
||||||
"weight": 405,
|
"weight": 405,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md",
|
||||||
"rate-limit": 0,
|
"rate-limit": 0,
|
||||||
"rate-time": 3600,
|
"rate-time": 3600,
|
||||||
"rate-key": "url:{url},ip:{ip}",
|
"rate-key": "url:{url},ip:{ip}",
|
||||||
|
|
@ -5344,9 +5334,9 @@
|
||||||
},
|
},
|
||||||
"put": {
|
"put": {
|
||||||
"summary": "Create or update a row",
|
"summary": "Create or update a row",
|
||||||
"operationId": "tablesUpsertRow",
|
"operationId": "gridsUpsertRow",
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5368,8 +5358,8 @@
|
||||||
"weight": 408,
|
"weight": 408,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5383,13 +5373,22 @@
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "upsertRow",
|
"name": "upsertRow",
|
||||||
|
"namespace": "grids",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [],
|
"parameters": [
|
||||||
"required": [],
|
"databaseId",
|
||||||
|
"tableId",
|
||||||
|
"rowId",
|
||||||
|
"data",
|
||||||
|
"permissions"
|
||||||
|
],
|
||||||
|
"required": [
|
||||||
|
"databaseId",
|
||||||
|
"tableId",
|
||||||
|
"rowId"
|
||||||
|
],
|
||||||
"responses": [
|
"responses": [
|
||||||
{
|
{
|
||||||
"code": 201,
|
"code": 201,
|
||||||
|
|
@ -5469,9 +5468,9 @@
|
||||||
},
|
},
|
||||||
"patch": {
|
"patch": {
|
||||||
"summary": "Update row",
|
"summary": "Update row",
|
||||||
"operationId": "tablesUpdateRow",
|
"operationId": "gridsUpdateRow",
|
||||||
"tags": [
|
"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.",
|
"description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5493,8 +5492,8 @@
|
||||||
"weight": 406,
|
"weight": 406,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5575,9 +5574,9 @@
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"summary": "Delete row",
|
"summary": "Delete row",
|
||||||
"operationId": "tablesDeleteRow",
|
"operationId": "gridsDeleteRow",
|
||||||
"tags": [
|
"tags": [
|
||||||
"tables"
|
"grids"
|
||||||
],
|
],
|
||||||
"description": "Delete a row by its unique ID.",
|
"description": "Delete a row by its unique ID.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5592,8 +5591,8 @@
|
||||||
"weight": 410,
|
"weight": 410,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md",
|
||||||
"rate-limit": 60,
|
"rate-limit": 60,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5830,7 +5829,7 @@
|
||||||
"scheduledAt": {
|
"scheduledAt": {
|
||||||
"type": "string",
|
"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.",
|
"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": "<SCHEDULED_AT>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -4379,7 +4379,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.listRows"
|
"replaceWith": "grids.listRows"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4468,15 +4468,14 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.createRow"
|
"replaceWith": "grids.createRow"
|
||||||
},
|
},
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "createDocument",
|
"name": "createDocument",
|
||||||
|
"namespace": "databases",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [
|
"parameters": [
|
||||||
"databaseId",
|
"databaseId",
|
||||||
|
|
@ -4497,7 +4496,11 @@
|
||||||
"model": "#\/components\/schemas\/document"
|
"model": "#\/components\/schemas\/document"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
|
||||||
|
"deprecated": {
|
||||||
|
"since": "1.8.0",
|
||||||
|
"replaceWith": "grids.createRow"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auth": {
|
"auth": {
|
||||||
|
|
@ -4613,7 +4616,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.getRow"
|
"replaceWith": "grids.getRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4712,25 +4715,39 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.upsertRow"
|
"replaceWith": "grids.upsertRow"
|
||||||
},
|
},
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "upsertDocument",
|
"name": "upsertDocument",
|
||||||
|
"namespace": "databases",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [],
|
"parameters": [
|
||||||
"required": [],
|
"databaseId",
|
||||||
|
"collectionId",
|
||||||
|
"documentId",
|
||||||
|
"data",
|
||||||
|
"permissions"
|
||||||
|
],
|
||||||
|
"required": [
|
||||||
|
"databaseId",
|
||||||
|
"collectionId",
|
||||||
|
"documentId",
|
||||||
|
"data"
|
||||||
|
],
|
||||||
"responses": [
|
"responses": [
|
||||||
{
|
{
|
||||||
"code": 201,
|
"code": 201,
|
||||||
"model": "#\/components\/schemas\/document"
|
"model": "#\/components\/schemas\/document"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
|
||||||
|
"deprecated": {
|
||||||
|
"since": "1.8.0",
|
||||||
|
"replaceWith": "grids.upsertRow"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auth": {
|
"auth": {
|
||||||
|
|
@ -4844,7 +4861,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.updateRow"
|
"replaceWith": "grids.updateRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4947,7 +4964,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.deleteRow"
|
"replaceWith": "grids.deleteRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4994,12 +5011,12 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"\/databases\/{databaseId}\/tables\/{tableId}\/rows": {
|
"\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "List rows",
|
"summary": "List rows",
|
||||||
"operationId": "tablesListRows",
|
"operationId": "gridsListRows",
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5021,8 +5038,8 @@
|
||||||
"weight": 412,
|
"weight": 412,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md",
|
||||||
"rate-limit": 0,
|
"rate-limit": 0,
|
||||||
"rate-time": 3600,
|
"rate-time": 3600,
|
||||||
"rate-key": "url:{url},ip:{ip}",
|
"rate-key": "url:{url},ip:{ip}",
|
||||||
|
|
@ -5082,9 +5099,9 @@
|
||||||
},
|
},
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Create row",
|
"summary": "Create row",
|
||||||
"operationId": "tablesCreateRow",
|
"operationId": "gridsCreateRow",
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5106,8 +5123,8 @@
|
||||||
"weight": 404,
|
"weight": 404,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5121,10 +5138,9 @@
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "createRow",
|
"name": "createRow",
|
||||||
|
"namespace": "grids",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [
|
"parameters": [
|
||||||
"databaseId",
|
"databaseId",
|
||||||
|
|
@ -5146,30 +5162,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."
|
"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": {
|
"auth": {
|
||||||
|
|
@ -5244,12 +5236,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": {
|
"\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "Get row",
|
"summary": "Get row",
|
||||||
"operationId": "tablesGetRow",
|
"operationId": "gridsGetRow",
|
||||||
"tags": [
|
"tags": [
|
||||||
"tables"
|
"grids"
|
||||||
],
|
],
|
||||||
"description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.",
|
"description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5271,8 +5263,8 @@
|
||||||
"weight": 405,
|
"weight": 405,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md",
|
||||||
"rate-limit": 0,
|
"rate-limit": 0,
|
||||||
"rate-time": 3600,
|
"rate-time": 3600,
|
||||||
"rate-key": "url:{url},ip:{ip}",
|
"rate-key": "url:{url},ip:{ip}",
|
||||||
|
|
@ -5342,9 +5334,9 @@
|
||||||
},
|
},
|
||||||
"put": {
|
"put": {
|
||||||
"summary": "Create or update a row",
|
"summary": "Create or update a row",
|
||||||
"operationId": "tablesUpsertRow",
|
"operationId": "gridsUpsertRow",
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5366,8 +5358,8 @@
|
||||||
"weight": 408,
|
"weight": 408,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5381,13 +5373,22 @@
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "upsertRow",
|
"name": "upsertRow",
|
||||||
|
"namespace": "grids",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [],
|
"parameters": [
|
||||||
"required": [],
|
"databaseId",
|
||||||
|
"tableId",
|
||||||
|
"rowId",
|
||||||
|
"data",
|
||||||
|
"permissions"
|
||||||
|
],
|
||||||
|
"required": [
|
||||||
|
"databaseId",
|
||||||
|
"tableId",
|
||||||
|
"rowId"
|
||||||
|
],
|
||||||
"responses": [
|
"responses": [
|
||||||
{
|
{
|
||||||
"code": 201,
|
"code": 201,
|
||||||
|
|
@ -5467,9 +5468,9 @@
|
||||||
},
|
},
|
||||||
"patch": {
|
"patch": {
|
||||||
"summary": "Update row",
|
"summary": "Update row",
|
||||||
"operationId": "tablesUpdateRow",
|
"operationId": "gridsUpdateRow",
|
||||||
"tags": [
|
"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.",
|
"description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5491,8 +5492,8 @@
|
||||||
"weight": 406,
|
"weight": 406,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5573,9 +5574,9 @@
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"summary": "Delete row",
|
"summary": "Delete row",
|
||||||
"operationId": "tablesDeleteRow",
|
"operationId": "gridsDeleteRow",
|
||||||
"tags": [
|
"tags": [
|
||||||
"tables"
|
"grids"
|
||||||
],
|
],
|
||||||
"description": "Delete a row by its unique ID.",
|
"description": "Delete a row by its unique ID.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5590,8 +5591,8 @@
|
||||||
"weight": 410,
|
"weight": 410,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md",
|
||||||
"rate-limit": 60,
|
"rate-limit": 60,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5828,7 +5829,7 @@
|
||||||
"scheduledAt": {
|
"scheduledAt": {
|
||||||
"type": "string",
|
"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.",
|
"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": "<SCHEDULED_AT>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -1964,7 +1964,6 @@
|
||||||
"client"
|
"client"
|
||||||
],
|
],
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": true,
|
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
}
|
}
|
||||||
|
|
@ -2175,7 +2174,6 @@
|
||||||
"client"
|
"client"
|
||||||
],
|
],
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": true,
|
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
}
|
}
|
||||||
|
|
@ -4522,7 +4520,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.listRows"
|
"replaceWith": "grids.listRows"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4607,15 +4605,14 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.createRow"
|
"replaceWith": "grids.createRow"
|
||||||
},
|
},
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "createDocument",
|
"name": "createDocument",
|
||||||
|
"namespace": "databases",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [
|
"parameters": [
|
||||||
"databaseId",
|
"databaseId",
|
||||||
|
|
@ -4636,7 +4633,11 @@
|
||||||
"model": "#\/definitions\/document"
|
"model": "#\/definitions\/document"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
|
||||||
|
"deprecated": {
|
||||||
|
"since": "1.8.0",
|
||||||
|
"replaceWith": "grids.createRow"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auth": {
|
"auth": {
|
||||||
|
|
@ -4749,7 +4750,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.getRow"
|
"replaceWith": "grids.getRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4842,25 +4843,39 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.upsertRow"
|
"replaceWith": "grids.upsertRow"
|
||||||
},
|
},
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "upsertDocument",
|
"name": "upsertDocument",
|
||||||
|
"namespace": "databases",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [],
|
"parameters": [
|
||||||
"required": [],
|
"databaseId",
|
||||||
|
"collectionId",
|
||||||
|
"documentId",
|
||||||
|
"data",
|
||||||
|
"permissions"
|
||||||
|
],
|
||||||
|
"required": [
|
||||||
|
"databaseId",
|
||||||
|
"collectionId",
|
||||||
|
"documentId",
|
||||||
|
"data"
|
||||||
|
],
|
||||||
"responses": [
|
"responses": [
|
||||||
{
|
{
|
||||||
"code": 201,
|
"code": 201,
|
||||||
"model": "#\/definitions\/document"
|
"model": "#\/definitions\/document"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
|
||||||
|
"deprecated": {
|
||||||
|
"since": "1.8.0",
|
||||||
|
"replaceWith": "grids.upsertRow"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auth": {
|
"auth": {
|
||||||
|
|
@ -4969,7 +4984,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.updateRow"
|
"replaceWith": "grids.updateRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -5069,7 +5084,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.deleteRow"
|
"replaceWith": "grids.deleteRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -5110,16 +5125,16 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"\/databases\/{databaseId}\/tables\/{tableId}\/rows": {
|
"\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "List rows",
|
"summary": "List rows",
|
||||||
"operationId": "tablesListRows",
|
"operationId": "gridsListRows",
|
||||||
"consumes": [],
|
"consumes": [],
|
||||||
"produces": [
|
"produces": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5137,8 +5152,8 @@
|
||||||
"weight": 412,
|
"weight": 412,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md",
|
||||||
"rate-limit": 0,
|
"rate-limit": 0,
|
||||||
"rate-time": 3600,
|
"rate-time": 3600,
|
||||||
"rate-key": "url:{url},ip:{ip}",
|
"rate-key": "url:{url},ip:{ip}",
|
||||||
|
|
@ -5192,7 +5207,7 @@
|
||||||
},
|
},
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Create row",
|
"summary": "Create row",
|
||||||
"operationId": "tablesCreateRow",
|
"operationId": "gridsCreateRow",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
|
|
@ -5200,7 +5215,7 @@
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5218,8 +5233,8 @@
|
||||||
"weight": 404,
|
"weight": 404,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5232,10 +5247,9 @@
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "createRow",
|
"name": "createRow",
|
||||||
|
"namespace": "grids",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [
|
"parameters": [
|
||||||
"databaseId",
|
"databaseId",
|
||||||
|
|
@ -5257,30 +5271,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."
|
"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": {
|
"auth": {
|
||||||
|
|
@ -5353,16 +5343,16 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": {
|
"\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "Get row",
|
"summary": "Get row",
|
||||||
"operationId": "tablesGetRow",
|
"operationId": "gridsGetRow",
|
||||||
"consumes": [],
|
"consumes": [],
|
||||||
"produces": [
|
"produces": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"tables"
|
"grids"
|
||||||
],
|
],
|
||||||
"description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.",
|
"description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5380,8 +5370,8 @@
|
||||||
"weight": 405,
|
"weight": 405,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md",
|
||||||
"rate-limit": 0,
|
"rate-limit": 0,
|
||||||
"rate-time": 3600,
|
"rate-time": 3600,
|
||||||
"rate-key": "url:{url},ip:{ip}",
|
"rate-key": "url:{url},ip:{ip}",
|
||||||
|
|
@ -5443,7 +5433,7 @@
|
||||||
},
|
},
|
||||||
"put": {
|
"put": {
|
||||||
"summary": "Create or update a row",
|
"summary": "Create or update a row",
|
||||||
"operationId": "tablesUpsertRow",
|
"operationId": "gridsUpsertRow",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
|
|
@ -5451,7 +5441,7 @@
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5469,8 +5459,8 @@
|
||||||
"weight": 408,
|
"weight": 408,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5483,13 +5473,22 @@
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "upsertRow",
|
"name": "upsertRow",
|
||||||
|
"namespace": "grids",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [],
|
"parameters": [
|
||||||
"required": [],
|
"databaseId",
|
||||||
|
"tableId",
|
||||||
|
"rowId",
|
||||||
|
"data",
|
||||||
|
"permissions"
|
||||||
|
],
|
||||||
|
"required": [
|
||||||
|
"databaseId",
|
||||||
|
"tableId",
|
||||||
|
"rowId"
|
||||||
|
],
|
||||||
"responses": [
|
"responses": [
|
||||||
{
|
{
|
||||||
"code": 201,
|
"code": 201,
|
||||||
|
|
@ -5563,7 +5562,7 @@
|
||||||
},
|
},
|
||||||
"patch": {
|
"patch": {
|
||||||
"summary": "Update row",
|
"summary": "Update row",
|
||||||
"operationId": "tablesUpdateRow",
|
"operationId": "gridsUpdateRow",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
|
|
@ -5571,7 +5570,7 @@
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"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.",
|
"description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5589,8 +5588,8 @@
|
||||||
"weight": 406,
|
"weight": 406,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5664,13 +5663,13 @@
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"summary": "Delete row",
|
"summary": "Delete row",
|
||||||
"operationId": "tablesDeleteRow",
|
"operationId": "gridsDeleteRow",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"produces": [],
|
"produces": [],
|
||||||
"tags": [
|
"tags": [
|
||||||
"tables"
|
"grids"
|
||||||
],
|
],
|
||||||
"description": "Delete a row by its unique ID.",
|
"description": "Delete a row by its unique ID.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5685,8 +5684,8 @@
|
||||||
"weight": 410,
|
"weight": 410,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md",
|
||||||
"rate-limit": 60,
|
"rate-limit": 60,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5916,7 +5915,7 @@
|
||||||
"type": "string",
|
"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.",
|
"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,
|
"default": null,
|
||||||
"x-example": null
|
"x-example": "<SCHEDULED_AT>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -4520,7 +4520,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.listRows"
|
"replaceWith": "grids.listRows"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4605,15 +4605,14 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.createRow"
|
"replaceWith": "grids.createRow"
|
||||||
},
|
},
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "createDocument",
|
"name": "createDocument",
|
||||||
|
"namespace": "databases",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [
|
"parameters": [
|
||||||
"databaseId",
|
"databaseId",
|
||||||
|
|
@ -4634,7 +4633,11 @@
|
||||||
"model": "#\/definitions\/document"
|
"model": "#\/definitions\/document"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
"description": "Create a new Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
|
||||||
|
"deprecated": {
|
||||||
|
"since": "1.8.0",
|
||||||
|
"replaceWith": "grids.createRow"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auth": {
|
"auth": {
|
||||||
|
|
@ -4747,7 +4750,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.getRow"
|
"replaceWith": "grids.getRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -4840,25 +4843,39 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.upsertRow"
|
"replaceWith": "grids.upsertRow"
|
||||||
},
|
},
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "upsertDocument",
|
"name": "upsertDocument",
|
||||||
|
"namespace": "databases",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [],
|
"parameters": [
|
||||||
"required": [],
|
"databaseId",
|
||||||
|
"collectionId",
|
||||||
|
"documentId",
|
||||||
|
"data",
|
||||||
|
"permissions"
|
||||||
|
],
|
||||||
|
"required": [
|
||||||
|
"databaseId",
|
||||||
|
"collectionId",
|
||||||
|
"documentId",
|
||||||
|
"data"
|
||||||
|
],
|
||||||
"responses": [
|
"responses": [
|
||||||
{
|
{
|
||||||
"code": 201,
|
"code": 201,
|
||||||
"model": "#\/definitions\/document"
|
"model": "#\/definitions\/document"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console."
|
"description": "**WARNING: Experimental Feature** - This endpoint is experimental and not yet officially supported. It may be subject to breaking changes or removal in future versions.\n\nCreate or update a Document. Before using this route, you should create a new collection resource using either a [server integration](https:\/\/appwrite.io\/docs\/server\/databases#databasesCreateCollection) API or directly from your database console.",
|
||||||
|
"deprecated": {
|
||||||
|
"since": "1.8.0",
|
||||||
|
"replaceWith": "grids.upsertRow"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"auth": {
|
"auth": {
|
||||||
|
|
@ -4967,7 +4984,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.updateRow"
|
"replaceWith": "grids.updateRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -5067,7 +5084,7 @@
|
||||||
"packaging": false,
|
"packaging": false,
|
||||||
"deprecated": {
|
"deprecated": {
|
||||||
"since": "1.8.0",
|
"since": "1.8.0",
|
||||||
"replaceWith": "tables.deleteRow"
|
"replaceWith": "grids.deleteRow"
|
||||||
},
|
},
|
||||||
"auth": {
|
"auth": {
|
||||||
"Project": []
|
"Project": []
|
||||||
|
|
@ -5108,16 +5125,16 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"\/databases\/{databaseId}\/tables\/{tableId}\/rows": {
|
"\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "List rows",
|
"summary": "List rows",
|
||||||
"operationId": "tablesListRows",
|
"operationId": "gridsListRows",
|
||||||
"consumes": [],
|
"consumes": [],
|
||||||
"produces": [
|
"produces": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5135,8 +5152,8 @@
|
||||||
"weight": 412,
|
"weight": 412,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/list-rows.md",
|
||||||
"rate-limit": 0,
|
"rate-limit": 0,
|
||||||
"rate-time": 3600,
|
"rate-time": 3600,
|
||||||
"rate-key": "url:{url},ip:{ip}",
|
"rate-key": "url:{url},ip:{ip}",
|
||||||
|
|
@ -5190,7 +5207,7 @@
|
||||||
},
|
},
|
||||||
"post": {
|
"post": {
|
||||||
"summary": "Create row",
|
"summary": "Create row",
|
||||||
"operationId": "tablesCreateRow",
|
"operationId": "gridsCreateRow",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
|
|
@ -5198,7 +5215,7 @@
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5216,8 +5233,8 @@
|
||||||
"weight": 404,
|
"weight": 404,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/create-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5230,10 +5247,9 @@
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "createRow",
|
"name": "createRow",
|
||||||
|
"namespace": "grids",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [
|
"parameters": [
|
||||||
"databaseId",
|
"databaseId",
|
||||||
|
|
@ -5255,30 +5271,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."
|
"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": {
|
"auth": {
|
||||||
|
|
@ -5351,16 +5343,16 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"\/databases\/{databaseId}\/tables\/{tableId}\/rows\/{rowId}": {
|
"\/databases\/{databaseId}\/grids\/tables\/{tableId}\/rows\/{rowId}": {
|
||||||
"get": {
|
"get": {
|
||||||
"summary": "Get row",
|
"summary": "Get row",
|
||||||
"operationId": "tablesGetRow",
|
"operationId": "gridsGetRow",
|
||||||
"consumes": [],
|
"consumes": [],
|
||||||
"produces": [
|
"produces": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"tags": [
|
||||||
"tables"
|
"grids"
|
||||||
],
|
],
|
||||||
"description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.",
|
"description": "Get a row by its unique ID. This endpoint response returns a JSON object with the row data.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5378,8 +5370,8 @@
|
||||||
"weight": 405,
|
"weight": 405,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/get-row.md",
|
||||||
"rate-limit": 0,
|
"rate-limit": 0,
|
||||||
"rate-time": 3600,
|
"rate-time": 3600,
|
||||||
"rate-key": "url:{url},ip:{ip}",
|
"rate-key": "url:{url},ip:{ip}",
|
||||||
|
|
@ -5441,7 +5433,7 @@
|
||||||
},
|
},
|
||||||
"put": {
|
"put": {
|
||||||
"summary": "Create or update a row",
|
"summary": "Create or update a row",
|
||||||
"operationId": "tablesUpsertRow",
|
"operationId": "gridsUpsertRow",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
|
|
@ -5449,7 +5441,7 @@
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"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.",
|
"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": {
|
"responses": {
|
||||||
|
|
@ -5467,8 +5459,8 @@
|
||||||
"weight": 408,
|
"weight": 408,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/upsert-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5481,13 +5473,22 @@
|
||||||
"methods": [
|
"methods": [
|
||||||
{
|
{
|
||||||
"name": "upsertRow",
|
"name": "upsertRow",
|
||||||
|
"namespace": "grids",
|
||||||
"auth": {
|
"auth": {
|
||||||
"Session": [],
|
"Project": []
|
||||||
"Key": [],
|
|
||||||
"JWT": []
|
|
||||||
},
|
},
|
||||||
"parameters": [],
|
"parameters": [
|
||||||
"required": [],
|
"databaseId",
|
||||||
|
"tableId",
|
||||||
|
"rowId",
|
||||||
|
"data",
|
||||||
|
"permissions"
|
||||||
|
],
|
||||||
|
"required": [
|
||||||
|
"databaseId",
|
||||||
|
"tableId",
|
||||||
|
"rowId"
|
||||||
|
],
|
||||||
"responses": [
|
"responses": [
|
||||||
{
|
{
|
||||||
"code": 201,
|
"code": 201,
|
||||||
|
|
@ -5561,7 +5562,7 @@
|
||||||
},
|
},
|
||||||
"patch": {
|
"patch": {
|
||||||
"summary": "Update row",
|
"summary": "Update row",
|
||||||
"operationId": "tablesUpdateRow",
|
"operationId": "gridsUpdateRow",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
|
|
@ -5569,7 +5570,7 @@
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"tags": [
|
"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.",
|
"description": "Update a row by its unique ID. Using the patch method you can pass only specific fields that will get updated.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5587,8 +5588,8 @@
|
||||||
"weight": 406,
|
"weight": 406,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/update-row.md",
|
||||||
"rate-limit": 120,
|
"rate-limit": 120,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5662,13 +5663,13 @@
|
||||||
},
|
},
|
||||||
"delete": {
|
"delete": {
|
||||||
"summary": "Delete row",
|
"summary": "Delete row",
|
||||||
"operationId": "tablesDeleteRow",
|
"operationId": "gridsDeleteRow",
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application\/json"
|
"application\/json"
|
||||||
],
|
],
|
||||||
"produces": [],
|
"produces": [],
|
||||||
"tags": [
|
"tags": [
|
||||||
"tables"
|
"grids"
|
||||||
],
|
],
|
||||||
"description": "Delete a row by its unique ID.",
|
"description": "Delete a row by its unique ID.",
|
||||||
"responses": {
|
"responses": {
|
||||||
|
|
@ -5683,8 +5684,8 @@
|
||||||
"weight": 410,
|
"weight": 410,
|
||||||
"cookies": false,
|
"cookies": false,
|
||||||
"type": "",
|
"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",
|
"edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/master\/docs\/references\/grids\/delete-row.md",
|
||||||
"rate-limit": 60,
|
"rate-limit": 60,
|
||||||
"rate-time": 60,
|
"rate-time": 60,
|
||||||
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
"rate-key": "ip:{ip},method:{method},url:{url},userId:{userId}",
|
||||||
|
|
@ -5914,7 +5915,7 @@
|
||||||
"type": "string",
|
"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.",
|
"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,
|
"default": null,
|
||||||
"x-example": null
|
"x-example": "<SCHEDULED_AT>"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -86,7 +86,7 @@
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"ext-fileinfo": "*",
|
"ext-fileinfo": "*",
|
||||||
"appwrite/sdk-generator": "0.41.*",
|
"appwrite/sdk-generator": "0.*.*",
|
||||||
"phpunit/phpunit": "9.*",
|
"phpunit/phpunit": "9.*",
|
||||||
"swoole/ide-helper": "5.1.2",
|
"swoole/ide-helper": "5.1.2",
|
||||||
"phpstan/phpstan": "1.8.*",
|
"phpstan/phpstan": "1.8.*",
|
||||||
|
|
|
||||||
2
composer.lock
generated
2
composer.lock
generated
|
|
@ -4,7 +4,7 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "ee81ef96c463854d58fd5678c28ad896",
|
"content-hash": "f4876940be4499bea26a77a036dece4f",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "adhocore/jwt",
|
"name": "adhocore/jwt",
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@ abstract class Action extends UtopiaAction
|
||||||
|
|
||||||
public function setHttpPath(string $path): UtopiaAction
|
public function setHttpPath(string $path): UtopiaAction
|
||||||
{
|
{
|
||||||
if (str_contains($path, '/:databaseId/tables')) {
|
if (str_contains($path, '/:databaseId/grids/tables')) {
|
||||||
$this->context = TABLES;
|
$this->context = TABLES;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -64,7 +64,7 @@ abstract class Action extends UtopiaAction
|
||||||
*/
|
*/
|
||||||
final protected function getSdkNamespace(): string
|
final protected function getSdkNamespace(): string
|
||||||
{
|
{
|
||||||
return $this->isCollectionsAPI() ? 'databases' : 'tables';
|
return $this->isCollectionsAPI() ? 'databases' : 'grids';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ abstract class Action extends UtopiaAction
|
||||||
|
|
||||||
public function setHttpPath(string $path): UtopiaAction
|
public function setHttpPath(string $path): UtopiaAction
|
||||||
{
|
{
|
||||||
if (str_contains($path, '/:databaseId/tables')) {
|
if (str_contains($path, '/:databaseId/grids/tables')) {
|
||||||
$this->context = COLUMNS;
|
$this->context = COLUMNS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -77,7 +77,7 @@ abstract class Action extends UtopiaAction
|
||||||
*/
|
*/
|
||||||
final protected function getSdkNamespace(): string
|
final protected function getSdkNamespace(): string
|
||||||
{
|
{
|
||||||
return $this->isCollectionsAPI() ? 'databases' : 'tables';
|
return $this->isCollectionsAPI() ? 'databases' : 'grids';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createBooleanColumn',
|
replaceWith: 'grids.createBooleanColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateBooleanColumn',
|
replaceWith: 'grids.updateBooleanColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createDatetimeColumn',
|
replaceWith: 'grids.createDatetimeColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateDatetimeColumn',
|
replaceWith: 'grids.updateDatetimeColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class Delete extends Action
|
||||||
contentType: ContentType::NONE,
|
contentType: ContentType::NONE,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.deleteColumn',
|
replaceWith: 'grids.deleteColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createEmailColumn',
|
replaceWith: 'grids.createEmailColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateEmailColumn',
|
replaceWith: 'grids.updateEmailColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createEnumColumn',
|
replaceWith: 'grids.createEnumColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateEnumColumn',
|
replaceWith: 'grids.updateEnumColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createFloatColumn',
|
replaceWith: 'grids.createFloatColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateFloatColumn',
|
replaceWith: 'grids.updateFloatColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ class Get extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.getColumn',
|
replaceWith: 'grids.getColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createIpColumn',
|
replaceWith: 'grids.createIpColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateIpColumn',
|
replaceWith: 'grids.updateIpColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createIntegerColumn',
|
replaceWith: 'grids.createIntegerColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateIntegerColumn',
|
replaceWith: 'grids.updateIntegerColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createRelationshipColumn',
|
replaceWith: 'grids.createRelationshipColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateRelationshipColumn',
|
replaceWith: 'grids.updateRelationshipColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createStringColumn',
|
replaceWith: 'grids.createStringColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateStringColumn',
|
replaceWith: 'grids.updateStringColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createUrlColumn',
|
replaceWith: 'grids.createUrlColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateUrlColumn',
|
replaceWith: 'grids.updateUrlColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ class XList extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.listColumns',
|
replaceWith: 'grids.listColumns',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ class Create extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.create',
|
replaceWith: 'grids.createTable',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class Delete extends Action
|
||||||
contentType: ContentType::NONE,
|
contentType: ContentType::NONE,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.delete',
|
replaceWith: 'grids.deleteTable',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@ abstract class Action extends UtopiaAction
|
||||||
|
|
||||||
public function setHttpPath(string $path): UtopiaAction
|
public function setHttpPath(string $path): UtopiaAction
|
||||||
{
|
{
|
||||||
if (str_contains($path, '/:databaseId/tables')) {
|
if (str_contains($path, '/:databaseId/grids/tables')) {
|
||||||
$this->context = ROWS;
|
$this->context = ROWS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -72,7 +72,7 @@ abstract class Action extends UtopiaAction
|
||||||
*/
|
*/
|
||||||
final protected function getSdkNamespace(): string
|
final protected function getSdkNamespace(): string
|
||||||
{
|
{
|
||||||
return $this->isCollectionsAPI() ? 'databases' : 'tables';
|
return $this->isCollectionsAPI() ? 'databases' : 'grids';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ class Decrement extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.decrementRowColumn',
|
replaceWith: 'grids.decrementRowColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ class Increment extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.incrementRowColumn',
|
replaceWith: 'grids.incrementRowColumn',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ class Delete extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.deleteRows',
|
replaceWith: 'grids.deleteRows',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateRows',
|
replaceWith: 'grids.updateRows',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ class Upsert extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.upsertRows',
|
replaceWith: 'grids.upsertRows',
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createRow',
|
replaceWith: 'grids.createRow',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
new Method(
|
new Method(
|
||||||
|
|
@ -107,7 +107,7 @@ class Create extends Action
|
||||||
],
|
],
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createRows',
|
replaceWith: 'grids.createRows',
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ class Delete extends Action
|
||||||
contentType: ContentType::NONE,
|
contentType: ContentType::NONE,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.deleteRow',
|
replaceWith: 'grids.deleteRow',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class Get extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.getRow',
|
replaceWith: 'grids.getRow',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ class XList extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.listLogs',
|
replaceWith: 'grids.listRowLogs',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -69,7 +69,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.updateRow',
|
replaceWith: 'grids.updateRow',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ class Upsert extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.upsertRow',
|
replaceWith: 'grids.upsertRow',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
])
|
])
|
||||||
|
|
|
||||||
|
|
@ -59,7 +59,7 @@ class XList extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.listRows',
|
replaceWith: 'grids.listRows',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ class Get extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.get',
|
replaceWith: 'grids.getTable',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ abstract class Action extends UtopiaAction
|
||||||
|
|
||||||
public function setHttpPath(string $path): UtopiaAction
|
public function setHttpPath(string $path): UtopiaAction
|
||||||
{
|
{
|
||||||
if (str_contains($path, '/:databaseId/tables')) {
|
if (str_contains($path, '/:databaseId/grids/tables')) {
|
||||||
$this->context = COLUMN_INDEX;
|
$this->context = COLUMN_INDEX;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -63,7 +63,7 @@ abstract class Action extends UtopiaAction
|
||||||
*/
|
*/
|
||||||
final protected function getSdkNamespace(): string
|
final protected function getSdkNamespace(): string
|
||||||
{
|
{
|
||||||
return $this->isCollectionsAPI() ? 'databases' : 'tables';
|
return $this->isCollectionsAPI() ? 'databases' : 'grids';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ class Create extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.createIndex',
|
replaceWith: 'grids.createIndex',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ class Delete extends Action
|
||||||
contentType: ContentType::NONE,
|
contentType: ContentType::NONE,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.deleteIndex',
|
replaceWith: 'grids.deleteIndex',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ class Get extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.getIndex',
|
replaceWith: 'grids.getIndex',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ class XList extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.listIndexes',
|
replaceWith: 'grids.listIndexes',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -62,7 +62,7 @@ class XList extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.listLogs',
|
replaceWith: 'grids.listTableLogs',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ class Update extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.update',
|
replaceWith: 'grids.updateTable',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -55,7 +55,7 @@ class Get extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.getUsage',
|
replaceWith: 'grids.getTableUsage',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ class XList extends Action
|
||||||
contentType: ContentType::JSON,
|
contentType: ContentType::JSON,
|
||||||
deprecated: new Deprecated(
|
deprecated: new Deprecated(
|
||||||
since: '1.8.0',
|
since: '1.8.0',
|
||||||
replaceWith: 'tables.list',
|
replaceWith: 'grids.listTables',
|
||||||
),
|
),
|
||||||
))
|
))
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ use Appwrite\Event\Event;
|
||||||
use Appwrite\Extend\Exception;
|
use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
|
use Appwrite\SDK\Deprecated;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||||
|
|
@ -42,20 +43,40 @@ class Create extends Action
|
||||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||||
->label('audits.event', 'database.create')
|
->label('audits.event', 'database.create')
|
||||||
->label('audits.resource', 'database/{response.$id}')
|
->label('audits.resource', 'database/{response.$id}')
|
||||||
->label('sdk', new Method(
|
->label('sdk', [
|
||||||
namespace: 'databases',
|
new Method(
|
||||||
group: 'databases',
|
namespace: 'databases',
|
||||||
name: 'create',
|
group: 'databases',
|
||||||
description: '/docs/references/databases/create.md',
|
name: 'create',
|
||||||
auth: [AuthType::KEY],
|
description: '/docs/references/databases/create.md',
|
||||||
responses: [
|
auth: [AuthType::KEY],
|
||||||
new SDKResponse(
|
responses: [
|
||||||
code: SwooleResponse::STATUS_CODE_CREATED,
|
new SDKResponse(
|
||||||
model: UtopiaResponse::MODEL_DATABASE,
|
code: SwooleResponse::STATUS_CODE_CREATED,
|
||||||
|
model: UtopiaResponse::MODEL_DATABASE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON,
|
||||||
|
deprecated: new Deprecated(
|
||||||
|
since: '1.8.0',
|
||||||
|
replaceWith: 'grids.createDatabase',
|
||||||
)
|
)
|
||||||
],
|
),
|
||||||
contentType: ContentType::JSON
|
new Method(
|
||||||
))
|
namespace: 'grids',
|
||||||
|
group: 'grids',
|
||||||
|
name: 'createDatabase',
|
||||||
|
description: '/docs/references/grids/create-database.md',
|
||||||
|
auth: [AuthType::KEY],
|
||||||
|
responses: [
|
||||||
|
new SDKResponse(
|
||||||
|
code: SwooleResponse::STATUS_CODE_CREATED,
|
||||||
|
model: UtopiaResponse::MODEL_DATABASE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON
|
||||||
|
)
|
||||||
|
])
|
||||||
->param('databaseId', '', new CustomId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
|
->param('databaseId', '', new CustomId(), 'Unique Id. Choose a custom ID or generate a random ID with `ID.unique()`. Valid chars are a-z, A-Z, 0-9, period, hyphen, and underscore. Can\'t start with a special char. Max length is 36 chars.')
|
||||||
->param('name', '', new Text(128), 'Database name. Max length: 128 chars.')
|
->param('name', '', new Text(128), 'Database name. Max length: 128 chars.')
|
||||||
->param('enabled', true, new Boolean(), 'Is the database enabled? When set to \'disabled\', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.', true)
|
->param('enabled', true, new Boolean(), 'Is the database enabled? When set to \'disabled\', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.', true)
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@ use Appwrite\Event\Event;
|
||||||
use Appwrite\Extend\Exception;
|
use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
|
use Appwrite\SDK\Deprecated;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Response as UtopiaResponse;
|
use Appwrite\Utopia\Response as UtopiaResponse;
|
||||||
|
|
@ -34,20 +35,40 @@ class Delete extends Action
|
||||||
->label('event', 'databases.[databaseId].delete')
|
->label('event', 'databases.[databaseId].delete')
|
||||||
->label('audits.event', 'database.delete')
|
->label('audits.event', 'database.delete')
|
||||||
->label('audits.resource', 'database/{request.databaseId}')
|
->label('audits.resource', 'database/{request.databaseId}')
|
||||||
->label('sdk', new Method(
|
->label('sdk', [
|
||||||
namespace: 'databases',
|
new Method(
|
||||||
group: 'databases',
|
namespace: 'databases',
|
||||||
name: 'delete',
|
group: 'databases',
|
||||||
description: '/docs/references/databases/delete.md',
|
name: 'delete',
|
||||||
auth: [AuthType::KEY],
|
description: '/docs/references/databases/delete.md',
|
||||||
responses: [
|
auth: [AuthType::KEY],
|
||||||
new SDKResponse(
|
responses: [
|
||||||
code: SwooleResponse::STATUS_CODE_NOCONTENT,
|
new SDKResponse(
|
||||||
model: UtopiaResponse::MODEL_NONE,
|
code: SwooleResponse::STATUS_CODE_NOCONTENT,
|
||||||
|
model: UtopiaResponse::MODEL_NONE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::NONE,
|
||||||
|
deprecated: new Deprecated(
|
||||||
|
since: '1.8.0',
|
||||||
|
replaceWith: 'grids.deleteDatabase',
|
||||||
)
|
)
|
||||||
],
|
),
|
||||||
contentType: ContentType::NONE
|
new Method(
|
||||||
))
|
namespace: 'grids',
|
||||||
|
group: 'grids',
|
||||||
|
name: 'deleteDatabase',
|
||||||
|
description: '/docs/references/grids/delete-database.md',
|
||||||
|
auth: [AuthType::KEY],
|
||||||
|
responses: [
|
||||||
|
new SDKResponse(
|
||||||
|
code: SwooleResponse::STATUS_CODE_NOCONTENT,
|
||||||
|
model: UtopiaResponse::MODEL_NONE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::NONE
|
||||||
|
),
|
||||||
|
])
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->inject('dbForProject')
|
->inject('dbForProject')
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases;
|
||||||
use Appwrite\Extend\Exception;
|
use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
|
use Appwrite\SDK\Deprecated;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Response as UtopiaResponse;
|
use Appwrite\Utopia\Response as UtopiaResponse;
|
||||||
|
|
@ -29,20 +30,40 @@ class Get extends Action
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('scope', 'databases.read')
|
->label('scope', 'databases.read')
|
||||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||||
->label('sdk', new Method(
|
->label('sdk', [
|
||||||
namespace: 'databases',
|
new Method(
|
||||||
group: 'databases',
|
namespace: 'databases',
|
||||||
name: 'get',
|
group: 'databases',
|
||||||
description: '/docs/references/databases/get.md',
|
name: 'get',
|
||||||
auth: [AuthType::KEY],
|
description: '/docs/references/databases/get.md',
|
||||||
responses: [
|
auth: [AuthType::KEY],
|
||||||
new SDKResponse(
|
responses: [
|
||||||
code: SwooleResponse::STATUS_CODE_OK,
|
new SDKResponse(
|
||||||
model: UtopiaResponse::MODEL_DATABASE,
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_DATABASE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON,
|
||||||
|
deprecated: new Deprecated(
|
||||||
|
since: '1.8.0',
|
||||||
|
replaceWith: 'grids.getDatabase',
|
||||||
)
|
)
|
||||||
],
|
),
|
||||||
contentType: ContentType::JSON
|
new Method(
|
||||||
))
|
namespace: 'grids',
|
||||||
|
group: 'grids',
|
||||||
|
name: 'getDatabase',
|
||||||
|
description: '/docs/references/grids/get-database.md',
|
||||||
|
auth: [AuthType::KEY],
|
||||||
|
responses: [
|
||||||
|
new SDKResponse(
|
||||||
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_DATABASE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON
|
||||||
|
),
|
||||||
|
])
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->inject('dbForProject')
|
->inject('dbForProject')
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Logs;
|
||||||
use Appwrite\Extend\Exception;
|
use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
|
use Appwrite\SDK\Deprecated;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Response as UtopiaResponse;
|
use Appwrite\Utopia\Response as UtopiaResponse;
|
||||||
|
|
@ -41,20 +42,40 @@ class XList extends Action
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('scope', 'databases.read')
|
->label('scope', 'databases.read')
|
||||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||||
->label('sdk', new Method(
|
->label('sdk', [
|
||||||
namespace: 'databases',
|
new Method(
|
||||||
group: 'logs',
|
namespace: 'databases',
|
||||||
name: 'listLogs',
|
group: 'logs',
|
||||||
description: '/docs/references/databases/get-logs.md',
|
name: 'listLogs',
|
||||||
auth: [AuthType::ADMIN],
|
description: '/docs/references/databases/get-logs.md',
|
||||||
responses: [
|
auth: [AuthType::ADMIN],
|
||||||
new SDKResponse(
|
responses: [
|
||||||
code: SwooleResponse::STATUS_CODE_OK,
|
new SDKResponse(
|
||||||
model: UtopiaResponse::MODEL_LOG_LIST,
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_LOG_LIST,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON,
|
||||||
|
deprecated: new Deprecated(
|
||||||
|
since: '1.8.0',
|
||||||
|
replaceWith: 'grids.listDatabaseLogs',
|
||||||
)
|
)
|
||||||
],
|
),
|
||||||
contentType: ContentType::JSON
|
new Method(
|
||||||
))
|
namespace: 'grids',
|
||||||
|
group: 'logs',
|
||||||
|
name: 'listDatabaseLogs',
|
||||||
|
description: '/docs/references/grids/list-database-logs.md',
|
||||||
|
auth: [AuthType::ADMIN],
|
||||||
|
responses: [
|
||||||
|
new SDKResponse(
|
||||||
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_LOG_LIST,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON
|
||||||
|
),
|
||||||
|
])
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
->param('queries', [], new Queries([new Limit(), new Offset()]), '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', true)
|
->param('queries', [], new Queries([new Limit(), new Offset()]), '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', true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@ use Appwrite\Event\Event;
|
||||||
use Appwrite\Extend\Exception;
|
use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
|
use Appwrite\SDK\Deprecated;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Response as UtopiaResponse;
|
use Appwrite\Utopia\Response as UtopiaResponse;
|
||||||
|
|
@ -35,20 +36,40 @@ class Update extends Action
|
||||||
->label('event', 'databases.[databaseId].update')
|
->label('event', 'databases.[databaseId].update')
|
||||||
->label('audits.event', 'database.update')
|
->label('audits.event', 'database.update')
|
||||||
->label('audits.resource', 'database/{response.$id}')
|
->label('audits.resource', 'database/{response.$id}')
|
||||||
->label('sdk', new Method(
|
->label('sdk', [
|
||||||
namespace: 'databases',
|
new Method(
|
||||||
group: 'databases',
|
namespace: 'databases',
|
||||||
name: 'update',
|
group: 'databases',
|
||||||
description: '/docs/references/databases/update.md',
|
name: 'update',
|
||||||
auth: [AuthType::KEY],
|
description: '/docs/references/databases/update.md',
|
||||||
responses: [
|
auth: [AuthType::KEY],
|
||||||
new SDKResponse(
|
responses: [
|
||||||
code: SwooleResponse::STATUS_CODE_OK,
|
new SDKResponse(
|
||||||
model: UtopiaResponse::MODEL_DATABASE,
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_DATABASE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON,
|
||||||
|
deprecated: new Deprecated(
|
||||||
|
since: '1.8.0',
|
||||||
|
replaceWith: 'grids.updateDatabase',
|
||||||
)
|
)
|
||||||
],
|
),
|
||||||
contentType: ContentType::JSON
|
new Method(
|
||||||
))
|
namespace: 'grids',
|
||||||
|
group: 'grids',
|
||||||
|
name: 'updateDatabase',
|
||||||
|
description: '/docs/references/grids/update-database.md',
|
||||||
|
auth: [AuthType::KEY],
|
||||||
|
responses: [
|
||||||
|
new SDKResponse(
|
||||||
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_DATABASE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON
|
||||||
|
),
|
||||||
|
])
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
->param('name', null, new Text(128), 'Database name. Max length: 128 chars.')
|
->param('name', null, new Text(128), 'Database name. Max length: 128 chars.')
|
||||||
->param('enabled', true, new Boolean(), 'Is database enabled? When set to \'disabled\', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.', true)
|
->param('enabled', true, new Boolean(), 'Is database enabled? When set to \'disabled\', users cannot access the database but Server SDKs with an API key can still read and write to the database. No data is lost when this is toggled.', true)
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Usage;
|
||||||
use Appwrite\Extend\Exception;
|
use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
|
use Appwrite\SDK\Deprecated;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Response as UtopiaResponse;
|
use Appwrite\Utopia\Response as UtopiaResponse;
|
||||||
|
|
@ -34,20 +35,41 @@ class Get extends Action
|
||||||
->groups(['api', 'database', 'usage'])
|
->groups(['api', 'database', 'usage'])
|
||||||
->label('scope', 'collections.read')
|
->label('scope', 'collections.read')
|
||||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||||
->label('sdk', new Method(
|
->label('sdk', [
|
||||||
namespace: 'databases',
|
new Method(
|
||||||
group: null,
|
namespace: 'databases',
|
||||||
name: self::getName(),
|
group: null,
|
||||||
description: '/docs/references/databases/get-database-usage.md',
|
name: self::getName(),
|
||||||
auth: [AuthType::ADMIN],
|
description: '/docs/references/databases/get-database-usage.md',
|
||||||
responses: [
|
auth: [AuthType::ADMIN],
|
||||||
new SDKResponse(
|
responses: [
|
||||||
code: SwooleResponse::STATUS_CODE_OK,
|
new SDKResponse(
|
||||||
model: UtopiaResponse::MODEL_USAGE_DATABASE,
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_USAGE_DATABASE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON,
|
||||||
|
deprecated: new Deprecated(
|
||||||
|
since: '1.8.0',
|
||||||
|
replaceWith: 'grids.' . self::getName(),
|
||||||
)
|
)
|
||||||
],
|
),
|
||||||
contentType: ContentType::JSON,
|
new Method(
|
||||||
))
|
namespace: 'grids',
|
||||||
|
group: null,
|
||||||
|
name: self::getName(),
|
||||||
|
description: '/docs/references/grids/get-database-usage.md',
|
||||||
|
auth: [AuthType::ADMIN],
|
||||||
|
responses: [
|
||||||
|
new SDKResponse(
|
||||||
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_USAGE_DATABASE,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON,
|
||||||
|
),
|
||||||
|
|
||||||
|
])
|
||||||
->param('databaseId', '', new UID(), 'Database ID.')
|
->param('databaseId', '', new UID(), 'Database ID.')
|
||||||
->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true)
|
->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases\Usage;
|
||||||
|
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
|
use Appwrite\SDK\Deprecated;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Response as UtopiaResponse;
|
use Appwrite\Utopia\Response as UtopiaResponse;
|
||||||
|
|
@ -32,20 +33,40 @@ class XList extends Action
|
||||||
->groups(['api', 'database', 'usage'])
|
->groups(['api', 'database', 'usage'])
|
||||||
->label('scope', 'collections.read')
|
->label('scope', 'collections.read')
|
||||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||||
->label('sdk', new Method(
|
->label('sdk', [
|
||||||
namespace: 'databases',
|
new Method(
|
||||||
group: null,
|
namespace: 'databases',
|
||||||
name: self::getName(),
|
group: null,
|
||||||
description: '/docs/references/databases/list-usage.md',
|
name: self::getName(),
|
||||||
auth: [AuthType::ADMIN],
|
description: '/docs/references/databases/list-usage.md',
|
||||||
responses: [
|
auth: [AuthType::ADMIN],
|
||||||
new SDKResponse(
|
responses: [
|
||||||
code: SwooleResponse::STATUS_CODE_OK,
|
new SDKResponse(
|
||||||
model: UtopiaResponse::MODEL_USAGE_DATABASES,
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_USAGE_DATABASES,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON,
|
||||||
|
deprecated: new Deprecated(
|
||||||
|
since: '1.8.0',
|
||||||
|
replaceWith: 'grids.listDatabaseUsage'
|
||||||
)
|
)
|
||||||
],
|
),
|
||||||
contentType: ContentType::JSON
|
new Method(
|
||||||
))
|
namespace: 'grids',
|
||||||
|
group: null,
|
||||||
|
name: 'listDatabaseUsage',
|
||||||
|
description: '/docs/references/grids/list-database-usage.md',
|
||||||
|
auth: [AuthType::ADMIN],
|
||||||
|
responses: [
|
||||||
|
new SDKResponse(
|
||||||
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_USAGE_DATABASES,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON
|
||||||
|
),
|
||||||
|
])
|
||||||
->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true)
|
->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
->inject('dbForProject')
|
->inject('dbForProject')
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ namespace Appwrite\Platform\Modules\Databases\Http\Databases;
|
||||||
use Appwrite\Extend\Exception;
|
use Appwrite\Extend\Exception;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
use Appwrite\SDK\ContentType;
|
use Appwrite\SDK\ContentType;
|
||||||
|
use Appwrite\SDK\Deprecated;
|
||||||
use Appwrite\SDK\Method;
|
use Appwrite\SDK\Method;
|
||||||
use Appwrite\SDK\Response as SDKResponse;
|
use Appwrite\SDK\Response as SDKResponse;
|
||||||
use Appwrite\Utopia\Database\Validator\Queries\Databases;
|
use Appwrite\Utopia\Database\Validator\Queries\Databases;
|
||||||
|
|
@ -35,20 +36,40 @@ class XList extends Action
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('scope', 'databases.read')
|
->label('scope', 'databases.read')
|
||||||
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
->label('resourceType', RESOURCE_TYPE_DATABASES)
|
||||||
->label('sdk', new Method(
|
->label('sdk', [
|
||||||
namespace: 'databases',
|
new Method(
|
||||||
group: 'databases',
|
namespace: 'databases',
|
||||||
name: 'list',
|
group: 'databases',
|
||||||
description: '/docs/references/databases/list.md',
|
name: 'list',
|
||||||
auth: [AuthType::KEY],
|
description: '/docs/references/databases/list.md',
|
||||||
responses: [
|
auth: [AuthType::KEY],
|
||||||
new SDKResponse(
|
responses: [
|
||||||
code: SwooleResponse::STATUS_CODE_OK,
|
new SDKResponse(
|
||||||
model: UtopiaResponse::MODEL_DATABASE_LIST,
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_DATABASE_LIST,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON,
|
||||||
|
deprecated: new Deprecated(
|
||||||
|
since: '1.8.0',
|
||||||
|
replaceWith: 'grids.listDatabases',
|
||||||
)
|
)
|
||||||
],
|
),
|
||||||
contentType: ContentType::JSON
|
new Method(
|
||||||
))
|
namespace: 'grids',
|
||||||
|
group: 'grids',
|
||||||
|
name: 'listDatabases',
|
||||||
|
description: '/docs/references/grids/list-databases.md',
|
||||||
|
auth: [AuthType::KEY],
|
||||||
|
responses: [
|
||||||
|
new SDKResponse(
|
||||||
|
code: SwooleResponse::STATUS_CODE_OK,
|
||||||
|
model: UtopiaResponse::MODEL_DATABASE_LIST,
|
||||||
|
)
|
||||||
|
],
|
||||||
|
contentType: ContentType::JSON
|
||||||
|
),
|
||||||
|
])
|
||||||
->param('queries', [], new Databases(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Databases::ALLOWED_ATTRIBUTES), true)
|
->param('queries', [], new Databases(), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/queries). Maximum of ' . APP_LIMIT_ARRAY_PARAMS_SIZE . ' queries are allowed, each ' . APP_LIMIT_ARRAY_ELEMENT_SIZE . ' characters long. You may filter on the following attributes: ' . implode(', ', Databases::ALLOWED_ATTRIBUTES), true)
|
||||||
->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
|
->param('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
|
||||||
->inject('response')
|
->inject('response')
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Boolean;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Boolean;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Boolean\Create as BooleanCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Boolean\Create as BooleanCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -28,7 +28,7 @@ class Create extends BooleanCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/boolean')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/boolean')
|
||||||
->desc('Create boolean column')
|
->desc('Create boolean column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create')
|
->label('event', 'databases.[databaseId].tables.[tableId].columns.[columnId].create')
|
||||||
|
|
@ -40,7 +40,7 @@ class Create extends BooleanCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-boolean-column.md',
|
description: '/docs/references/grids/create-boolean-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Boolean;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Boolean;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Boolean\Update as BooleanUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Boolean\Update as BooleanUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -30,7 +30,7 @@ class Update extends BooleanUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/boolean/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/boolean/:key')
|
||||||
->desc('Update boolean column')
|
->desc('Update boolean column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -42,7 +42,7 @@ class Update extends BooleanUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-boolean-column.md',
|
description: '/docs/references/grids/update-boolean-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Datetime;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Datetime;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Datetime\Create as DatetimeCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Datetime\Create as DatetimeCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -30,7 +30,7 @@ class Create extends DatetimeCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/datetime')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/datetime')
|
||||||
->desc('Create datetime column')
|
->desc('Create datetime column')
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -42,7 +42,7 @@ class Create extends DatetimeCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-datetime-column.md',
|
description: '/docs/references/grids/create-datetime-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Datetime;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Datetime;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Datetime\Update as DatetimeUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Datetime\Update as DatetimeUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -32,7 +32,7 @@ class Update extends DatetimeUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/datetime/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/datetime/:key')
|
||||||
->desc('Update dateTime column')
|
->desc('Update dateTime column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -44,7 +44,7 @@ class Update extends DatetimeUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-datetime-column.md',
|
description: '/docs/references/grids/update-datetime-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Delete as AttributesDelete;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Delete as AttributesDelete;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -29,7 +29,7 @@ class Delete extends AttributesDelete
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/:key')
|
||||||
->desc('Delete column')
|
->desc('Delete column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -41,7 +41,7 @@ class Delete extends AttributesDelete
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/delete-column.md',
|
description: '/docs/references/grids/delete-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Email;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Email;
|
||||||
|
|
||||||
use Appwrite\Network\Validator\Email;
|
use Appwrite\Network\Validator\Email;
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Email\Create as EmailCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Email\Create as EmailCreate;
|
||||||
|
|
@ -29,7 +29,7 @@ class Create extends EmailCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/email')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/email')
|
||||||
->desc('Create email column')
|
->desc('Create email column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -41,7 +41,7 @@ class Create extends EmailCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-email-column.md',
|
description: '/docs/references/grids/create-email-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Email;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Email;
|
||||||
|
|
||||||
use Appwrite\Network\Validator\Email;
|
use Appwrite\Network\Validator\Email;
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Email\Update as EmailUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Email\Update as EmailUpdate;
|
||||||
|
|
@ -31,7 +31,7 @@ class Update extends EmailUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/email/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/email/:key')
|
||||||
->desc('Update email column')
|
->desc('Update email column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -43,7 +43,7 @@ class Update extends EmailUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-email-column.md',
|
description: '/docs/references/grids/update-email-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Enum;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Enum;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Enum\Create as EnumCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Enum\Create as EnumCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -31,7 +31,7 @@ class Create extends EnumCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/enum')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/enum')
|
||||||
->desc('Create enum column')
|
->desc('Create enum column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -43,7 +43,7 @@ class Create extends EnumCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-enum-column.md',
|
description: '/docs/references/grids/create-enum-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Enum;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Enum;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Enum\Update as EnumUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Enum\Update as EnumUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -33,7 +33,7 @@ class Update extends EnumUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/enum/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/enum/:key')
|
||||||
->desc('Update enum column')
|
->desc('Update enum column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -45,7 +45,7 @@ class Update extends EnumUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-enum-column.md',
|
description: '/docs/references/grids/update-enum-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Float;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Float;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Float\Create as FloatCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Float\Create as FloatCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -29,7 +29,7 @@ class Create extends FloatCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/float')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/float')
|
||||||
->desc('Create float column')
|
->desc('Create float column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -41,7 +41,7 @@ class Create extends FloatCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-float-column.md',
|
description: '/docs/references/grids/create-float-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Float;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Float;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Float\Update as FloatUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Float\Update as FloatUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -31,7 +31,7 @@ class Update extends FloatUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/float/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/float/:key')
|
||||||
->desc('Update float column')
|
->desc('Update float column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -43,7 +43,7 @@ class Update extends FloatUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-float-column.md',
|
description: '/docs/references/grids/update-float-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Get as AttributesGet;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Get as AttributesGet;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -38,7 +38,7 @@ class Get extends AttributesGet
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_GET)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_GET)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/:key')
|
||||||
->desc('Get column')
|
->desc('Get column')
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('scope', 'tables.read')
|
->label('scope', 'tables.read')
|
||||||
|
|
@ -47,7 +47,7 @@ class Get extends AttributesGet
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/get-column.md',
|
description: '/docs/references/grids/get-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\IP;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\IP;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\IP\Create as IPCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\IP\Create as IPCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -29,7 +29,7 @@ class Create extends IPCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/ip')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/ip')
|
||||||
->desc('Create IP address column')
|
->desc('Create IP address column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -41,7 +41,7 @@ class Create extends IPCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-ip-column.md',
|
description: '/docs/references/grids/create-ip-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\IP;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\IP;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\IP\Update as IPUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\IP\Update as IPUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -31,7 +31,7 @@ class Update extends IPUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/ip/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/ip/:key')
|
||||||
->desc('Update IP address column')
|
->desc('Update IP address column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -43,7 +43,7 @@ class Update extends IPUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-ip-column.md',
|
description: '/docs/references/grids/update-ip-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Integer;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Integer;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Integer\Create as IntegerCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Integer\Create as IntegerCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -29,7 +29,7 @@ class Create extends IntegerCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/integer')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/integer')
|
||||||
->desc('Create integer column')
|
->desc('Create integer column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -41,7 +41,7 @@ class Create extends IntegerCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-integer-column.md',
|
description: '/docs/references/grids/create-integer-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Integer;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Integer;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Integer\Update as IntegerUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Integer\Update as IntegerUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -31,7 +31,7 @@ class Update extends IntegerUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/integer/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/integer/:key')
|
||||||
->desc('Update integer column')
|
->desc('Update integer column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -43,7 +43,7 @@ class Update extends IntegerUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-integer-column.md',
|
description: '/docs/references/grids/update-integer-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Relationship;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Relationship;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Relationship\Create as RelationshipCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Relationship\Create as RelationshipCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -30,7 +30,7 @@ class Create extends RelationshipCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/relationship')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/relationship')
|
||||||
->desc('Create relationship column')
|
->desc('Create relationship column')
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -42,7 +42,7 @@ class Create extends RelationshipCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-relationship-column.md',
|
description: '/docs/references/grids/create-relationship-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\Relationship;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\Relationship;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Relationship\Update as RelationshipUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\Relationship\Update as RelationshipUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -30,7 +30,7 @@ class Update extends RelationshipUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/:key/relationship')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/:key/relationship')
|
||||||
->desc('Update relationship column')
|
->desc('Update relationship column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -42,7 +42,7 @@ class Update extends RelationshipUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-relationship-column.md',
|
description: '/docs/references/grids/update-relationship-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\String;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\String;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\String\Create as StringCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\String\Create as StringCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -31,7 +31,7 @@ class Create extends StringCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/string')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/string')
|
||||||
->desc('Create string column')
|
->desc('Create string column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -43,7 +43,7 @@ class Create extends StringCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-string-column.md',
|
description: '/docs/references/grids/create-string-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\String;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\String;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\String\Update as StringUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\String\Update as StringUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -33,7 +33,7 @@ class Update extends StringUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/string/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/string/:key')
|
||||||
->desc('Update string column')
|
->desc('Update string column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -45,7 +45,7 @@ class Update extends StringUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-string-column.md',
|
description: '/docs/references/grids/update-string-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\URL;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\URL;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\URL\Create as URLCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\URL\Create as URLCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -29,7 +29,7 @@ class Create extends URLCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/url')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/url')
|
||||||
->desc('Create URL column')
|
->desc('Create URL column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -41,7 +41,7 @@ class Create extends URLCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-url-column.md',
|
description: '/docs/references/grids/create-url-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns\URL;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns\URL;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\URL\Update as URLUpdate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\URL\Update as URLUpdate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -31,7 +31,7 @@ class Update extends URLUpdate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_PATCH)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns/url/:key')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns/url/:key')
|
||||||
->desc('Update URL column')
|
->desc('Update URL column')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -43,7 +43,7 @@ class Update extends URLUpdate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/update-url-column.md',
|
description: '/docs/references/grids/update-url-column.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Columns;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Columns;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\XList as AttributesXList;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Attributes\XList as AttributesXList;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -27,7 +27,7 @@ class XList extends AttributesXList
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_GET)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_GET)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/columns')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/columns')
|
||||||
->desc('List columns')
|
->desc('List columns')
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('scope', 'tables.read')
|
->label('scope', 'tables.read')
|
||||||
|
|
@ -36,7 +36,7 @@ class XList extends AttributesXList
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/list-attributes.md',
|
description: '/docs/references/grids/list-columns.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Create as CollectionCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Create as CollectionCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -19,7 +19,7 @@ class Create extends CollectionCreate
|
||||||
{
|
{
|
||||||
public static function getName(): string
|
public static function getName(): string
|
||||||
{
|
{
|
||||||
return 'create';
|
return 'createTable';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getResponseModel(): string
|
protected function getResponseModel(): string
|
||||||
|
|
@ -31,7 +31,7 @@ class Create extends CollectionCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables')
|
||||||
->desc('Create table')
|
->desc('Create table')
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('event', 'databases.[databaseId].tables.[tableId].create')
|
->label('event', 'databases.[databaseId].tables.[tableId].create')
|
||||||
|
|
@ -43,7 +43,7 @@ class Create extends CollectionCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: null,
|
group: null,
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/create-table.md',
|
description: '/docs/references/grids/create-table.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Delete as CollectionDelete;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Delete as CollectionDelete;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -15,7 +15,7 @@ class Delete extends CollectionDelete
|
||||||
{
|
{
|
||||||
public static function getName(): string
|
public static function getName(): string
|
||||||
{
|
{
|
||||||
return 'delete';
|
return 'deleteTable';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getResponseModel(): string
|
protected function getResponseModel(): string
|
||||||
|
|
@ -27,7 +27,7 @@ class Delete extends CollectionDelete
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_DELETE)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId')
|
||||||
->desc('Delete table')
|
->desc('Delete table')
|
||||||
->groups(['api', 'database', 'schema'])
|
->groups(['api', 'database', 'schema'])
|
||||||
->label('scope', 'tables.write')
|
->label('scope', 'tables.write')
|
||||||
|
|
@ -39,7 +39,7 @@ class Delete extends CollectionDelete
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: null,
|
group: null,
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/delete-table.md',
|
description: '/docs/references/grids/delete-table.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Get as CollectionGet;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Get as CollectionGet;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -15,7 +15,7 @@ class Get extends CollectionGet
|
||||||
{
|
{
|
||||||
public static function getName(): string
|
public static function getName(): string
|
||||||
{
|
{
|
||||||
return 'get';
|
return 'getTable';
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function getResponseModel(): string
|
protected function getResponseModel(): string
|
||||||
|
|
@ -27,7 +27,7 @@ class Get extends CollectionGet
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_GET)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_GET)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId')
|
||||||
->desc('Get table')
|
->desc('Get table')
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('scope', 'tables.read')
|
->label('scope', 'tables.read')
|
||||||
|
|
@ -36,7 +36,7 @@ class Get extends CollectionGet
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: null,
|
group: null,
|
||||||
name: self::getName(),
|
name: self::getName(),
|
||||||
description: '/docs/references/databases/get-table.md',
|
description: '/docs/references/grids/get-table.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Appwrite\Platform\Modules\Databases\Http\Databases\Tables\Indexes;
|
namespace Appwrite\Platform\Modules\Databases\Http\Grids\Tables\Indexes;
|
||||||
|
|
||||||
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Indexes\Create as IndexCreate;
|
use Appwrite\Platform\Modules\Databases\Http\Databases\Collections\Indexes\Create as IndexCreate;
|
||||||
use Appwrite\SDK\AuthType;
|
use Appwrite\SDK\AuthType;
|
||||||
|
|
@ -33,7 +33,7 @@ class Create extends IndexCreate
|
||||||
{
|
{
|
||||||
$this
|
$this
|
||||||
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
->setHttpMethod(self::HTTP_REQUEST_METHOD_POST)
|
||||||
->setHttpPath('/v1/databases/:databaseId/tables/:tableId/indexes')
|
->setHttpPath('/v1/databases/:databaseId/grids/tables/:tableId/indexes')
|
||||||
->desc('Create index')
|
->desc('Create index')
|
||||||
->groups(['api', 'database'])
|
->groups(['api', 'database'])
|
||||||
->label('event', 'databases.[databaseId].tables.[tableId].indexes.[indexId].create')
|
->label('event', 'databases.[databaseId].tables.[tableId].indexes.[indexId].create')
|
||||||
|
|
@ -45,7 +45,7 @@ class Create extends IndexCreate
|
||||||
namespace: $this->getSdkNamespace(),
|
namespace: $this->getSdkNamespace(),
|
||||||
group: $this->getSdkGroup(),
|
group: $this->getSdkGroup(),
|
||||||
name: 'createIndex', // getName needs to be different from parent action to avoid conflict in path name
|
name: 'createIndex', // getName needs to be different from parent action to avoid conflict in path name
|
||||||
description: '/docs/references/databases/create-index.md',
|
description: '/docs/references/grids/create-index.md',
|
||||||
auth: [AuthType::KEY],
|
auth: [AuthType::KEY],
|
||||||
responses: [
|
responses: [
|
||||||
new SDKResponse(
|
new SDKResponse(
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue