mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Address Comments
This commit is contained in:
@@ -58,9 +58,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -109,9 +106,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -196,9 +190,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -274,9 +265,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/identities",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -335,9 +323,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -400,9 +385,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -451,9 +433,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -519,9 +498,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -591,9 +567,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -659,9 +632,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -739,9 +709,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -809,9 +776,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -885,9 +849,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -963,9 +924,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1016,9 +974,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1067,9 +1022,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1118,9 +1070,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1171,9 +1120,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1243,9 +1189,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1320,9 +1263,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1398,9 +1338,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/prefs",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1449,9 +1386,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/prefs",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1524,9 +1458,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1600,9 +1531,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1684,9 +1612,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/sessions",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1728,9 +1653,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1781,9 +1703,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1832,9 +1751,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1908,9 +1824,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1977,9 +1890,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2120,9 +2030,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2196,9 +2103,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2272,9 +2176,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/sessions",
|
||||
"offline-key": "{sessionId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2335,9 +2236,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2391,9 +2289,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2456,9 +2351,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2508,9 +2400,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2589,9 +2478,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2662,9 +2548,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2726,9 +2609,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2810,9 +2690,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2889,9 +2766,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3035,9 +2909,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3111,9 +2982,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3181,9 +3049,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3262,9 +3127,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3313,9 +3175,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3385,9 +3244,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3513,9 +3369,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3645,9 +3498,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3705,9 +3555,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4195,9 +4042,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4279,9 +4123,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4373,9 +4214,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4474,9 +4312,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4561,9 +4396,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"additional-methods": [
|
||||
{
|
||||
"name": "createDocuments",
|
||||
@@ -4576,8 +4408,7 @@
|
||||
"responses": [
|
||||
{
|
||||
"code": 201,
|
||||
"description": "",
|
||||
"model": "#\/components\/schemas\/document"
|
||||
"model": "#\/components\/schemas\/documentList"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -4690,9 +4521,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4770,7 +4598,7 @@
|
||||
"200": {
|
||||
"description": "Documents List",
|
||||
"content": {
|
||||
"": {
|
||||
"application\/json": {
|
||||
"schema": {
|
||||
"$ref": "#\/components\/schemas\/documentList"
|
||||
}
|
||||
@@ -4796,9 +4624,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4891,9 +4716,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4988,9 +4810,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5089,9 +4908,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5175,9 +4991,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5263,9 +5076,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5380,9 +5190,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5456,9 +5263,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5510,9 +5314,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5564,9 +5365,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/localed",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5618,9 +5416,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/localeCode",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5672,9 +5467,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/continents",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5726,9 +5518,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/countries",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5780,9 +5569,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/countries\/eu",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5834,9 +5620,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/countries\/phones",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "countryCode",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5888,9 +5671,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/currencies",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5942,9 +5722,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/languages",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5997,9 +5774,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6082,9 +5856,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6158,9 +5929,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6246,9 +6014,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6346,9 +6111,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6420,9 +6182,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6511,9 +6270,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6580,9 +6336,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6649,9 +6402,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6867,9 +6617,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6943,9 +6690,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7021,9 +6765,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7108,9 +6849,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams",
|
||||
"offline-key": "{teamId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7172,9 +6910,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams",
|
||||
"offline-key": "{teamId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7248,9 +6983,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7314,9 +7046,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams\/{teamId}\/memberships",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7402,9 +7131,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7515,9 +7241,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams\/{teamId}\/memberships",
|
||||
"offline-key": "{membershipId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7589,9 +7312,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7678,9 +7398,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7753,9 +7470,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7853,9 +7567,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams\/{teamId}\/prefs",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7916,9 +7627,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams\/{teamId}\/prefs",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -102,9 +102,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -155,9 +152,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -248,9 +242,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -330,9 +321,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/identities",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -394,9 +382,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -459,9 +444,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -512,9 +494,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -581,9 +560,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -656,9 +632,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -724,9 +697,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -805,9 +775,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -875,9 +842,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -954,9 +918,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1036,9 +997,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1091,9 +1049,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1144,9 +1099,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1197,9 +1149,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1252,9 +1201,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1327,9 +1273,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1408,9 +1351,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1490,9 +1430,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/prefs",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1543,9 +1480,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/prefs",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1621,9 +1555,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1701,9 +1632,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1790,9 +1718,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/sessions",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1838,9 +1763,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1893,9 +1815,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -1946,9 +1865,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2026,9 +1942,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2103,9 +2016,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2241,9 +2151,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2321,9 +2228,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2401,9 +2305,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/account\/sessions",
|
||||
"offline-key": "{sessionId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2464,9 +2365,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2522,9 +2420,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2587,9 +2482,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2641,9 +2533,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2727,9 +2616,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2801,9 +2687,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2865,9 +2748,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -2954,9 +2834,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3043,9 +2920,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3184,9 +3058,6 @@
|
||||
"client"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3264,9 +3135,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3337,9 +3205,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3422,9 +3287,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3475,9 +3337,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3558,9 +3417,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3687,9 +3543,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3820,9 +3673,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -3887,9 +3737,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4378,9 +4225,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4465,9 +4309,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4560,9 +4401,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4655,9 +4493,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4739,9 +4574,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"additional-methods": [
|
||||
{
|
||||
"name": "createDocuments",
|
||||
@@ -4754,10 +4586,10 @@
|
||||
"responses": [
|
||||
{
|
||||
"code": 201,
|
||||
"description": "",
|
||||
"model": "#\/definitions\/document"
|
||||
"model": "#\/definitions\/documentList"
|
||||
}
|
||||
]
|
||||
],
|
||||
"description": "\/docs\/references\/databases\/create-document.md"
|
||||
}
|
||||
],
|
||||
"auth": {
|
||||
@@ -4868,9 +4700,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -4940,7 +4769,9 @@
|
||||
"consumes": [
|
||||
"application\/json"
|
||||
],
|
||||
"produces": [],
|
||||
"produces": [
|
||||
"application\/json"
|
||||
],
|
||||
"tags": [
|
||||
"databases"
|
||||
],
|
||||
@@ -4971,9 +4802,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5063,9 +4891,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5155,9 +4980,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5254,9 +5076,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/databases\/{databaseId}\/collections\/{collectionId}\/documents",
|
||||
"offline-key": "{documentId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5336,9 +5155,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5421,9 +5237,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5542,9 +5355,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5616,9 +5426,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5692,9 +5499,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5768,9 +5572,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/localed",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5824,9 +5625,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/localeCode",
|
||||
"offline-key": "current",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5880,9 +5678,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/continents",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5936,9 +5731,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/countries",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -5992,9 +5784,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/countries\/eu",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6048,9 +5837,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/countries\/phones",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "countryCode",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6104,9 +5890,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/currencies",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6160,9 +5943,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/locale\/languages",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "code",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6217,9 +5997,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6304,9 +6081,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6378,9 +6152,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6463,9 +6234,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6557,9 +6325,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6629,9 +6394,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6720,9 +6482,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6794,9 +6553,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -6868,9 +6624,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7069,9 +6822,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7143,9 +6893,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7220,9 +6967,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7314,9 +7058,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams",
|
||||
"offline-key": "{teamId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7378,9 +7119,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams",
|
||||
"offline-key": "{teamId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7455,9 +7193,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7521,9 +7256,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams\/{teamId}\/memberships",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7606,9 +7338,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7723,9 +7452,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams\/{teamId}\/memberships",
|
||||
"offline-key": "{membershipId}",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7795,9 +7521,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7883,9 +7606,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -7956,9 +7676,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -8054,9 +7771,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams\/{teamId}\/prefs",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
@@ -8117,9 +7831,6 @@
|
||||
"server"
|
||||
],
|
||||
"packaging": false,
|
||||
"offline-model": "\/teams\/{teamId}\/prefs",
|
||||
"offline-key": "",
|
||||
"offline-response-key": "$id",
|
||||
"auth": {
|
||||
"Project": []
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -25,7 +25,7 @@ use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\MethodType;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Template\Template;
|
||||
use Appwrite\URL\URL as URLParser;
|
||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||
@@ -295,7 +295,7 @@ App::post('/v1/account')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->param('userId', '', new CustomId(), 'User 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.')
|
||||
@@ -438,7 +438,7 @@ App::get('/v1/account')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
@@ -467,7 +467,7 @@ App::delete('/v1/account')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->inject('user')
|
||||
->inject('project')
|
||||
@@ -519,7 +519,7 @@ App::get('/v1/account/sessions')
|
||||
model: Response::MODEL_SESSION_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
@@ -568,7 +568,7 @@ App::delete('/v1/account/sessions')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->label('abuse-limit', 100)
|
||||
->inject('request')
|
||||
@@ -637,7 +637,7 @@ App::get('/v1/account/sessions/:sessionId')
|
||||
model: Response::MODEL_SESSION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to get the current device session.')
|
||||
->inject('response')
|
||||
@@ -690,7 +690,7 @@ App::delete('/v1/account/sessions/:sessionId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->label('abuse-limit', 100)
|
||||
->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to delete the current device session.')
|
||||
@@ -778,7 +778,7 @@ App::patch('/v1/account/sessions/:sessionId')
|
||||
model: Response::MODEL_SESSION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to update the current device session.')
|
||||
@@ -862,7 +862,7 @@ App::post('/v1/account/sessions/email')
|
||||
model: Response::MODEL_SESSION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'url:{url},email:{param-email}')
|
||||
@@ -1002,7 +1002,7 @@ App::post('/v1/account/sessions/anonymous')
|
||||
model: Response::MODEL_SESSION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 50)
|
||||
->label('abuse-key', 'ip:{ip}')
|
||||
@@ -1145,7 +1145,7 @@ App::post('/v1/account/sessions/token')
|
||||
model: Response::MODEL_SESSION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'ip:{ip},userId:{param-userId}')
|
||||
@@ -1171,7 +1171,7 @@ App::get('/v1/account/sessions/oauth2/:provider')
|
||||
namespace: 'account',
|
||||
name: 'createOAuth2Session',
|
||||
description: '/docs/references/account/create-session-oauth2.md',
|
||||
methodType: MethodType::WEBAUTH,
|
||||
type: MethodType::WEBAUTH,
|
||||
auth: [],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
@@ -1179,7 +1179,7 @@ App::get('/v1/account/sessions/oauth2/:provider')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::HTML,
|
||||
contentType: ContentType::HTML,
|
||||
hide: [APP_PLATFORM_SERVER],
|
||||
))
|
||||
->label('abuse-limit', 50)
|
||||
@@ -1775,8 +1775,8 @@ App::get('/v1/account/tokens/oauth2/:provider')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::HTML,
|
||||
methodType: MethodType::WEBAUTH,
|
||||
contentType: ContentType::HTML,
|
||||
type: MethodType::WEBAUTH,
|
||||
))
|
||||
->label('abuse-limit', 50)
|
||||
->label('abuse-key', 'ip:{ip}')
|
||||
@@ -1855,7 +1855,7 @@ App::post('/v1/account/tokens/magic-url')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->label('abuse-limit', 60)
|
||||
->label('abuse-key', ['url:{url},email:{param-email}', 'url:{url},ip:{ip}'])
|
||||
@@ -2105,7 +2105,7 @@ App::post('/v1/account/tokens/email')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'url:{url},email:{param-email}')
|
||||
@@ -2340,7 +2340,7 @@ App::put('/v1/account/sessions/magic-url')
|
||||
model: Response::MODEL_SESSION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
deprecated: true,
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
@@ -2377,7 +2377,7 @@ App::put('/v1/account/sessions/phone')
|
||||
model: Response::MODEL_SESSION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
deprecated: true,
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
@@ -2415,7 +2415,7 @@ App::post('/v1/account/tokens/phone')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', ['url:{url},phone:{param-phone}', 'url:{url},ip:{ip}'])
|
||||
@@ -2599,7 +2599,7 @@ App::post('/v1/account/jwts')
|
||||
model: Response::MODEL_JWT,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->label('abuse-limit', 100)
|
||||
->label('abuse-key', 'url:{url},userId:{userId}')
|
||||
@@ -2647,7 +2647,7 @@ App::get('/v1/account/prefs')
|
||||
model: Response::MODEL_PREFERENCES,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
@@ -2673,7 +2673,7 @@ App::get('/v1/account/logs')
|
||||
model: Response::MODEL_LOG_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->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')
|
||||
@@ -2747,7 +2747,7 @@ App::patch('/v1/account/name')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('name', '', new Text(128), 'User name. Max length: 128 chars.')
|
||||
->inject('requestTimestamp')
|
||||
@@ -2785,7 +2785,7 @@ App::patch('/v1/account/password')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->param('password', '', fn ($project, $passwordsDictionary) => new PasswordDictionary($passwordsDictionary, $project->getAttribute('auths', [])['passwordDictionary'] ?? false), 'New user password. Must be at least 8 chars.', false, ['project', 'passwordsDictionary'])
|
||||
@@ -2858,7 +2858,7 @@ App::patch('/v1/account/email')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('email', '', new Email(), 'User email.')
|
||||
->param('password', '', new Password(), 'User password. Must be at least 8 chars.')
|
||||
@@ -2954,7 +2954,7 @@ App::patch('/v1/account/phone')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('phone', '', new Phone(), 'Phone number. Format this number with a leading \'+\' and a country code, e.g., +16175551212.')
|
||||
->param('password', '', new Password(), 'User password. Must be at least 8 chars.')
|
||||
@@ -3039,7 +3039,7 @@ App::patch('/v1/account/prefs')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('prefs', [], new Assoc(), 'Prefs key-value JSON object.')
|
||||
->inject('requestTimestamp')
|
||||
@@ -3076,7 +3076,7 @@ App::patch('/v1/account/status')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->inject('requestTimestamp')
|
||||
->inject('request')
|
||||
@@ -3126,7 +3126,7 @@ App::post('/v1/account/recovery')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', ['url:{url},email:{param-email}', 'url:{url},ip:{ip}'])
|
||||
@@ -3312,7 +3312,7 @@ App::put('/v1/account/recovery')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'url:{url},userId:{param-userId}')
|
||||
@@ -3402,7 +3402,7 @@ App::post('/v1/account/verification')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'url:{url},userId:{userId}')
|
||||
@@ -3573,7 +3573,7 @@ App::put('/v1/account/verification')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'url:{url},userId:{param-userId}')
|
||||
@@ -3639,7 +3639,7 @@ App::post('/v1/account/verification/phone')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', ['url:{url},userId:{userId}', 'url:{url},ip:{ip}'])
|
||||
@@ -3772,7 +3772,7 @@ App::put('/v1/account/verification/phone')
|
||||
model: Response::MODEL_TOKEN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'userId:{param-userId}')
|
||||
@@ -3837,7 +3837,7 @@ App::patch('/v1/account/mfa')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('mfa', null, new Boolean(), 'Enable or disable MFA.')
|
||||
->inject('requestTimestamp')
|
||||
@@ -3890,7 +3890,7 @@ App::get('/v1/account/mfa/factors')
|
||||
model: Response::MODEL_MFA_FACTORS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
@@ -3930,7 +3930,7 @@ App::post('/v1/account/mfa/authenticators/:type')
|
||||
model: Response::MODEL_MFA_TYPE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator. Must be `' . Type::TOTP . '`')
|
||||
->inject('requestTimestamp')
|
||||
@@ -4006,7 +4006,7 @@ App::put('/v1/account/mfa/authenticators/:type')
|
||||
model: Response::MODEL_USER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator.')
|
||||
->param('otp', '', new Text(256), 'Valid verification token.')
|
||||
@@ -4075,7 +4075,7 @@ App::post('/v1/account/mfa/recovery-codes')
|
||||
model: Response::MODEL_MFA_RECOVERY_CODES,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
@@ -4121,7 +4121,7 @@ App::patch('/v1/account/mfa/recovery-codes')
|
||||
model: Response::MODEL_MFA_RECOVERY_CODES,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('dbForProject')
|
||||
->inject('response')
|
||||
@@ -4162,7 +4162,7 @@ App::get('/v1/account/mfa/recovery-codes')
|
||||
model: Response::MODEL_MFA_RECOVERY_CODES,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('user')
|
||||
@@ -4200,7 +4200,7 @@ App::delete('/v1/account/mfa/authenticators/:type')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator.')
|
||||
->inject('response')
|
||||
@@ -4245,7 +4245,7 @@ App::post('/v1/account/mfa/challenge')
|
||||
model: Response::MODEL_MFA_CHALLENGE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'url:{url},userId:{userId}')
|
||||
@@ -4439,7 +4439,7 @@ App::put('/v1/account/mfa/challenge')
|
||||
model: Response::MODEL_SESSION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->label('abuse-limit', 10)
|
||||
->label('abuse-key', 'url:{url},challengeId:{param-challengeId}')
|
||||
@@ -4532,7 +4532,7 @@ App::post('/v1/account/targets/push')
|
||||
model: Response::MODEL_TARGET,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('targetId', '', new CustomId(), 'Target 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('identifier', '', new Text(Database::LENGTH_KEY), 'The target identifier (token, email, phone etc.)')
|
||||
@@ -4612,7 +4612,7 @@ App::put('/v1/account/targets/:targetId/push')
|
||||
model: Response::MODEL_TARGET,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('targetId', '', new UID(), 'Target ID.')
|
||||
->param('identifier', '', new Text(Database::LENGTH_KEY), 'The target identifier (token, email, phone etc.)')
|
||||
@@ -4676,7 +4676,7 @@ App::delete('/v1/account/targets/:targetId/push')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('targetId', '', new UID(), 'Target ID.')
|
||||
->inject('queueForEvents')
|
||||
@@ -4726,7 +4726,7 @@ App::get('/v1/account/identities')
|
||||
model: Response::MODEL_IDENTITY_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('queries', [], new Identities(), '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(', ', Identities::ALLOWED_ATTRIBUTES), true)
|
||||
->inject('response')
|
||||
@@ -4797,7 +4797,7 @@ App::delete('/v1/account/identities/:identityId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('identityId', '', new UID(), 'Identity ID.')
|
||||
->inject('response')
|
||||
|
||||
@@ -5,7 +5,7 @@ use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\MethodType;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\URL\URL as URLParse;
|
||||
use Appwrite\Utopia\Response;
|
||||
use chillerlan\QRCode\QRCode;
|
||||
@@ -174,14 +174,14 @@ App::get('/v1/avatars/credit-cards/:code')
|
||||
name: 'getCreditCard',
|
||||
description: '/docs/references/avatars/get-credit-card.md',
|
||||
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
|
||||
methodType: MethodType::LOCATION,
|
||||
type: MethodType::LOCATION,
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::IMAGE_PNG
|
||||
contentType: ContentType::IMAGE_PNG
|
||||
))
|
||||
->param('code', '', new WhiteList(\array_keys(Config::getParam('avatar-credit-cards'))), 'Credit Card Code. Possible values: ' . \implode(', ', \array_keys(Config::getParam('avatar-credit-cards'))) . '.')
|
||||
->param('width', 100, new Range(0, 2000), 'Image width. Pass an integer between 0 to 2000. Defaults to 100.', true)
|
||||
@@ -201,14 +201,14 @@ App::get('/v1/avatars/browsers/:code')
|
||||
name: 'getBrowser',
|
||||
description: '/docs/references/avatars/get-browser.md',
|
||||
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
|
||||
methodType: MethodType::LOCATION,
|
||||
type: MethodType::LOCATION,
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::IMAGE_PNG
|
||||
contentType: ContentType::IMAGE_PNG
|
||||
))
|
||||
->param('code', '', new WhiteList(\array_keys(Config::getParam('avatar-browsers'))), 'Browser Code.')
|
||||
->param('width', 100, new Range(0, 2000), 'Image width. Pass an integer between 0 to 2000. Defaults to 100.', true)
|
||||
@@ -228,14 +228,14 @@ App::get('/v1/avatars/flags/:code')
|
||||
name: 'getFlag',
|
||||
description: '/docs/references/avatars/get-flag.md',
|
||||
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
|
||||
methodType: MethodType::LOCATION,
|
||||
type: MethodType::LOCATION,
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::IMAGE_PNG
|
||||
contentType: ContentType::IMAGE_PNG
|
||||
))
|
||||
->param('code', '', new WhiteList(\array_keys(Config::getParam('avatar-flags'))), 'Country Code. ISO Alpha-2 country code format.')
|
||||
->param('width', 100, new Range(0, 2000), 'Image width. Pass an integer between 0 to 2000. Defaults to 100.', true)
|
||||
@@ -255,14 +255,14 @@ App::get('/v1/avatars/image')
|
||||
name: 'getImage',
|
||||
description: '/docs/references/avatars/get-image.md',
|
||||
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
|
||||
methodType: MethodType::LOCATION,
|
||||
type: MethodType::LOCATION,
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::IMAGE
|
||||
contentType: ContentType::IMAGE
|
||||
))
|
||||
->param('url', '', new URL(['http', 'https']), 'Image URL which you want to crop.')
|
||||
->param('width', 400, new Range(0, 2000), 'Resize preview image width, Pass an integer between 0 to 2000. Defaults to 400.', true)
|
||||
@@ -325,14 +325,14 @@ App::get('/v1/avatars/favicon')
|
||||
name: 'getFavicon',
|
||||
description: '/docs/references/avatars/get-favicon.md',
|
||||
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
|
||||
methodType: MethodType::LOCATION,
|
||||
type: MethodType::LOCATION,
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::IMAGE
|
||||
contentType: ContentType::IMAGE
|
||||
))
|
||||
->param('url', '', new URL(['http', 'https']), 'Website URL which you want to fetch the favicon from.')
|
||||
->inject('response')
|
||||
@@ -475,14 +475,14 @@ App::get('/v1/avatars/qr')
|
||||
name: 'getQR',
|
||||
description: '/docs/references/avatars/get-qr.md',
|
||||
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
|
||||
methodType: MethodType::LOCATION,
|
||||
type: MethodType::LOCATION,
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::IMAGE_PNG
|
||||
contentType: ContentType::IMAGE_PNG
|
||||
))
|
||||
->param('text', '', new Text(512), 'Plain text to be converted to QR code image.')
|
||||
->param('size', 400, new Range(1, 1000), 'QR code size. Pass an integer between 1 to 1000. Defaults to 400.', true)
|
||||
@@ -523,14 +523,14 @@ App::get('/v1/avatars/initials')
|
||||
name: 'getInitials',
|
||||
description: '/docs/references/avatars/get-initials.md',
|
||||
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
|
||||
methodType: MethodType::LOCATION,
|
||||
type: MethodType::LOCATION,
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::IMAGE_PNG
|
||||
contentType: ContentType::IMAGE_PNG
|
||||
))
|
||||
->param('name', '', new Text(128), 'Full Name. When empty, current user name or email will be used. Max length: 128 chars.', true)
|
||||
->param('width', 500, new Range(0, 2000), 'Image width. Pass an integer between 0 to 2000. Defaults to 100.', true)
|
||||
|
||||
@@ -4,7 +4,7 @@ use Appwrite\Extend\Exception;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Response;
|
||||
use Utopia\App;
|
||||
use Utopia\Database\Document;
|
||||
@@ -36,7 +36,7 @@ App::get('/v1/console/variables')
|
||||
model: Response::MODEL_CONSOLE_VARIABLES,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->action(function (Response $response) {
|
||||
@@ -81,7 +81,7 @@ App::post('/v1/console/assistant')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::TEXT
|
||||
contentType: ContentType::TEXT
|
||||
))
|
||||
->label('abuse-limit', 15)
|
||||
->label('abuse-key', 'userId:{userId}')
|
||||
|
||||
@@ -10,7 +10,7 @@ use Appwrite\Network\Validator\Email;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Attributes;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Collections;
|
||||
@@ -463,7 +463,7 @@ App::post('/v1/databases')
|
||||
model: Response::MODEL_DATABASE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
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('name', '', new Text(128), 'Database name. Max length: 128 chars.')
|
||||
@@ -545,7 +545,7 @@ App::get('/v1/databases')
|
||||
model: Response::MODEL_DATABASE_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
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('search', '', new Text(256), 'Search term to filter your list results. Max length: 256 chars.', true)
|
||||
@@ -607,7 +607,7 @@ App::get('/v1/databases/:databaseId')
|
||||
model: Response::MODEL_DATABASE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->inject('response')
|
||||
@@ -639,7 +639,7 @@ App::get('/v1/databases/:databaseId/logs')
|
||||
model: Response::MODEL_LOG_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->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)
|
||||
@@ -740,7 +740,7 @@ App::put('/v1/databases/:databaseId')
|
||||
model: Response::MODEL_DATABASE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('name', null, new Text(128), 'Database name. Max length: 128 chars.')
|
||||
@@ -785,7 +785,7 @@ App::delete('/v1/databases/:databaseId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->inject('response')
|
||||
@@ -841,7 +841,7 @@ App::post('/v1/databases/:databaseId/collections')
|
||||
model: Response::MODEL_COLLECTION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', 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.')
|
||||
@@ -912,7 +912,7 @@ App::get('/v1/databases/:databaseId/collections')
|
||||
model: Response::MODEL_COLLECTION_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('queries', [], new Collections(), '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(', ', Collections::ALLOWED_ATTRIBUTES), true)
|
||||
@@ -984,7 +984,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId')
|
||||
model: Response::MODEL_COLLECTION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID.')
|
||||
@@ -1025,7 +1025,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/logs')
|
||||
model: Response::MODEL_LOG_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID.')
|
||||
@@ -1130,7 +1130,7 @@ App::put('/v1/databases/:databaseId/collections/:collectionId')
|
||||
model: Response::MODEL_COLLECTION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID.')
|
||||
@@ -1204,7 +1204,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID.')
|
||||
@@ -2076,7 +2076,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/strin
|
||||
model: Response::MODEL_ATTRIBUTE_STRING,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2127,7 +2127,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/email
|
||||
model: Response::MODEL_ATTRIBUTE_EMAIL,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2176,7 +2176,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/enum/
|
||||
model: Response::MODEL_ATTRIBUTE_ENUM,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2227,7 +2227,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/ip/:k
|
||||
model: Response::MODEL_ATTRIBUTE_IP,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2276,7 +2276,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/url/:
|
||||
model: Response::MODEL_ATTRIBUTE_URL,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2325,7 +2325,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/integ
|
||||
model: Response::MODEL_ATTRIBUTE_INTEGER,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2384,7 +2384,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/float
|
||||
model: Response::MODEL_ATTRIBUTE_FLOAT,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2443,7 +2443,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/boole
|
||||
model: Response::MODEL_ATTRIBUTE_BOOLEAN,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2491,7 +2491,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/datet
|
||||
model: Response::MODEL_ATTRIBUTE_DATETIME,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2539,7 +2539,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/attributes/:key/
|
||||
model: Response::MODEL_ATTRIBUTE_RELATIONSHIP,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2604,7 +2604,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/attributes/:key
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2725,7 +2725,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/indexes')
|
||||
model: Response::MODEL_INDEX,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2899,7 +2899,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/indexes')
|
||||
model: Response::MODEL_INDEX_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -2981,7 +2981,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/indexes/:key')
|
||||
model: Response::MODEL_INDEX,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -3030,7 +3030,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/indexes/:key')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -3107,7 +3107,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
|
||||
model: Response::MODEL_DOCUMENT,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
parameters: [
|
||||
'documentId' => ['optional' => false],
|
||||
'data' => ['optional' => false],
|
||||
@@ -3125,7 +3125,7 @@ App::post('/v1/databases/:databaseId/collections/:collectionId/documents')
|
||||
model: Response::MODEL_DOCUMENT_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
parameters: [
|
||||
'documents' => ['optional' => false],
|
||||
]
|
||||
@@ -3425,7 +3425,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents')
|
||||
model: Response::MODEL_DOCUMENT_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -3585,7 +3585,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen
|
||||
model: Response::MODEL_DOCUMENT,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -3682,7 +3682,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/documents/:documen
|
||||
model: Response::MODEL_LOG_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID.')
|
||||
@@ -3799,7 +3799,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/documents/:docum
|
||||
model: Response::MODEL_DOCUMENT,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID.')
|
||||
@@ -4040,7 +4040,7 @@ App::patch('/v1/databases/:databaseId/collections/:collectionId/documents')
|
||||
model: Response::MODEL_DOCUMENT_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID.')
|
||||
@@ -4182,7 +4182,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/documents/:docu
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -4305,7 +4305,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/documents')
|
||||
model: Response::MODEL_DOCUMENT_LIST,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('collectionId', '', new UID(), 'Collection ID. You can create a new collection using the Database service [server integration](https://appwrite.io/docs/server/databases#databasesCreateCollection).')
|
||||
@@ -4413,7 +4413,7 @@ App::get('/v1/databases/usage')
|
||||
model: Response::MODEL_USAGE_DATABASES,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), '`Date range.', true)
|
||||
->inject('response')
|
||||
@@ -4502,7 +4502,7 @@ App::get('/v1/databases/:databaseId/usage')
|
||||
model: Response::MODEL_USAGE_DATABASE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), '`Date range.', true)
|
||||
@@ -4597,7 +4597,7 @@ App::get('/v1/databases/:databaseId/collections/:collectionId/usage')
|
||||
model: Response::MODEL_USAGE_COLLECTION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON,
|
||||
contentType: ContentType::JSON,
|
||||
))
|
||||
->param('databaseId', '', new UID(), 'Database ID.')
|
||||
->param('range', '30d', new WhiteList(['24h', '30d', '90d'], true), 'Date range.', true)
|
||||
|
||||
@@ -18,7 +18,7 @@ use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\MethodType;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Task\Validator\Cron;
|
||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Deployments;
|
||||
@@ -1025,8 +1025,8 @@ App::get('/v1/functions/:functionId/deployments/:deploymentId/download')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::ANY,
|
||||
methodType: MethodType::LOCATION
|
||||
contentType: ContentType::ANY,
|
||||
type: MethodType::LOCATION
|
||||
))
|
||||
->param('functionId', '', new UID(), 'Function ID.')
|
||||
->param('deploymentId', '', new UID(), 'Deployment ID.')
|
||||
@@ -1189,7 +1189,7 @@ App::delete('/v1/functions/:functionId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('functionId', '', new UID(), 'Function ID.')
|
||||
->inject('response')
|
||||
@@ -1245,7 +1245,7 @@ App::post('/v1/functions/:functionId/deployments')
|
||||
)
|
||||
],
|
||||
requestType: 'multipart/form-data',
|
||||
methodType: MethodType::UPLOAD,
|
||||
type: MethodType::UPLOAD,
|
||||
packaging: true,
|
||||
))
|
||||
->param('functionId', '', new UID(), 'Function ID.')
|
||||
@@ -1607,7 +1607,7 @@ App::delete('/v1/functions/:functionId/deployments/:deploymentId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('functionId', '', new UID(), 'Function ID.')
|
||||
->param('deploymentId', '', new UID(), 'Deployment ID.')
|
||||
@@ -1850,7 +1850,7 @@ App::post('/v1/functions/:functionId/executions')
|
||||
model: Response::MODEL_EXECUTION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::MULTIPART,
|
||||
contentType: ContentType::MULTIPART,
|
||||
requestType: 'application/json',
|
||||
))
|
||||
->param('functionId', '', new UID(), 'Function ID.')
|
||||
@@ -2407,7 +2407,7 @@ App::delete('/v1/functions/:functionId/executions/:executionId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('functionId', '', new UID(), 'Function ID.')
|
||||
->param('executionId', '', new UID(), 'Execution ID.')
|
||||
@@ -2704,7 +2704,7 @@ App::delete('/v1/functions/:functionId/variables/:variableId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('functionId', '', new UID(), 'Function unique ID.', false)
|
||||
->param('variableId', '', new UID(), 'Variable unique ID.', false)
|
||||
|
||||
@@ -99,7 +99,7 @@ App::post('/v1/graphql/mutation')
|
||||
model: Response::MODEL_ANY,
|
||||
)
|
||||
],
|
||||
methodType: MethodType::GRAPHQL,
|
||||
type: MethodType::GRAPHQL,
|
||||
additionalParameters: [
|
||||
'query' => ['default' => [], 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false],
|
||||
],
|
||||
@@ -149,7 +149,7 @@ App::post('/v1/graphql')
|
||||
model: Response::MODEL_ANY,
|
||||
)
|
||||
],
|
||||
methodType: MethodType::GRAPHQL,
|
||||
type: MethodType::GRAPHQL,
|
||||
additionalParameters: [
|
||||
'query' => ['default' => [], 'validator' => new JSON(), 'description' => 'The query or queries to execute.', 'optional' => false],
|
||||
],
|
||||
|
||||
@@ -6,7 +6,7 @@ use Appwrite\Extend\Exception;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Response;
|
||||
use Utopia\App;
|
||||
use Utopia\Config\Config;
|
||||
@@ -41,7 +41,7 @@ App::get('/v1/health')
|
||||
model: Response::MODEL_HEALTH_STATUS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->action(function (Response $response) {
|
||||
@@ -79,7 +79,7 @@ App::get('/v1/health/db')
|
||||
model: Response::MODEL_HEALTH_STATUS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('pools')
|
||||
@@ -139,7 +139,7 @@ App::get('/v1/health/cache')
|
||||
model: Response::MODEL_HEALTH_STATUS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('pools')
|
||||
@@ -203,7 +203,7 @@ App::get('/v1/health/queue')
|
||||
model: Response::MODEL_HEALTH_STATUS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('pools')
|
||||
@@ -266,7 +266,7 @@ App::get('/v1/health/pubsub')
|
||||
model: Response::MODEL_HEALTH_STATUS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('pools')
|
||||
@@ -330,7 +330,7 @@ App::get('/v1/health/time')
|
||||
model: Response::MODEL_HEALTH_TIME,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->action(function (Response $response) {
|
||||
@@ -393,7 +393,7 @@ App::get('/v1/health/queue/webhooks')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -426,7 +426,7 @@ App::get('/v1/health/queue/logs')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -459,7 +459,7 @@ App::get('/v1/health/certificate')
|
||||
model: Response::MODEL_HEALTH_CERTIFICATE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('domain', null, new Multiple([new Domain(), new PublicDomain()]), Multiple::TYPE_STRING, 'Domain name')
|
||||
->inject('response')
|
||||
@@ -515,7 +515,7 @@ App::get('/v1/health/queue/certificates')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -548,7 +548,7 @@ App::get('/v1/health/queue/builds')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -581,7 +581,7 @@ App::get('/v1/health/queue/databases')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('name', 'database_db_main', new Text(256), 'Queue name for which to check the queue size', true)
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
@@ -615,7 +615,7 @@ App::get('/v1/health/queue/deletes')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -648,7 +648,7 @@ App::get('/v1/health/queue/mails')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -681,7 +681,7 @@ App::get('/v1/health/queue/messaging')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -714,7 +714,7 @@ App::get('/v1/health/queue/migrations')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -747,7 +747,7 @@ App::get('/v1/health/queue/functions')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -780,7 +780,7 @@ App::get('/v1/health/queue/usage')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -813,7 +813,7 @@ App::get('/v1/health/queue/usage-dump')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('threshold', 5000, new Integer(true), 'Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.', true)
|
||||
->inject('queue')
|
||||
@@ -846,7 +846,7 @@ App::get('/v1/health/storage/local')
|
||||
model: Response::MODEL_HEALTH_STATUS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->action(function (Response $response) {
|
||||
@@ -895,7 +895,7 @@ App::get('/v1/health/storage')
|
||||
model: Response::MODEL_HEALTH_STATUS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->inject('deviceForFiles')
|
||||
@@ -942,7 +942,7 @@ App::get('/v1/health/anti-virus')
|
||||
model: Response::MODEL_HEALTH_ANTIVIRUS,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->inject('response')
|
||||
->action(function (Response $response) {
|
||||
@@ -987,7 +987,7 @@ App::get('/v1/health/queue/failed/:name')
|
||||
model: Response::MODEL_HEALTH_QUEUE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::JSON
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('name', '', new WhiteList([
|
||||
Event::DATABASE_QUEUE_NAME,
|
||||
|
||||
@@ -14,7 +14,7 @@ use Appwrite\Role;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Database\Validator\CompoundUID;
|
||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Messages;
|
||||
@@ -2052,7 +2052,7 @@ App::delete('/v1/messaging/providers/:providerId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('providerId', '', new UID(), 'Provider ID.')
|
||||
->inject('queueForEvents')
|
||||
@@ -2381,7 +2381,7 @@ App::delete('/v1/messaging/topics/:topicId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('topicId', '', new UID(), 'Topic ID.')
|
||||
->inject('queueForEvents')
|
||||
@@ -2755,7 +2755,7 @@ App::delete('/v1/messaging/topics/:topicId/subscribers/:subscriberId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('topicId', '', new UID(), 'Topic ID. The topic ID subscribed to.')
|
||||
->param('subscriberId', '', new UID(), 'Subscriber ID.')
|
||||
@@ -4157,7 +4157,7 @@ App::delete('/v1/messaging/messages/:messageId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('messageId', '', new UID(), 'Message ID.')
|
||||
->inject('dbForProject')
|
||||
|
||||
@@ -10,7 +10,7 @@ use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\MethodType;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Migrations;
|
||||
use Appwrite\Utopia\Request;
|
||||
use Appwrite\Utopia\Response;
|
||||
@@ -709,7 +709,7 @@ App::get('/v1/migrations/firebase/connect')
|
||||
)
|
||||
],
|
||||
hide: true,
|
||||
methodType: MethodType::WEBAUTH
|
||||
type: MethodType::WEBAUTH
|
||||
))
|
||||
->param('redirect', '', fn ($clients) => new Host($clients), 'URL to redirect back to your Firebase authorization. Only console hostnames are allowed.', true, ['clients'])
|
||||
->param('projectId', '', new UID(), 'Project ID')
|
||||
@@ -1145,7 +1145,7 @@ App::delete('/v1/migrations/:migrationId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('migrationId', '', new UID(), 'Migration ID.')
|
||||
->inject('response')
|
||||
|
||||
@@ -4,7 +4,7 @@ use Appwrite\Extend\Exception;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Response;
|
||||
use Utopia\App;
|
||||
use Utopia\Database\Database;
|
||||
@@ -503,7 +503,7 @@ App::delete('/v1/project/variables/:variableId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('variableId', '', new UID(), 'Variable unique ID.', false)
|
||||
->inject('project')
|
||||
|
||||
@@ -13,7 +13,7 @@ use Appwrite\Network\Validator\Origin;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Template\Template;
|
||||
use Appwrite\Utopia\Database\Validator\ProjectId;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Projects;
|
||||
@@ -1085,7 +1085,7 @@ App::delete('/v1/projects/:projectId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('projectId', '', new UID(), 'Project unique ID.')
|
||||
->inject('response')
|
||||
@@ -1380,7 +1380,7 @@ App::delete('/v1/projects/:projectId/webhooks/:webhookId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('projectId', '', new UID(), 'Project unique ID.')
|
||||
->param('webhookId', '', new UID(), 'Webhook unique ID.')
|
||||
@@ -1613,7 +1613,7 @@ App::delete('/v1/projects/:projectId/keys/:keyId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('projectId', '', new UID(), 'Project unique ID.')
|
||||
->param('keyId', '', new UID(), 'Key unique ID.')
|
||||
@@ -1890,7 +1890,7 @@ App::delete('/v1/projects/:projectId/platforms/:platformId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('projectId', '', new UID(), 'Project unique ID.')
|
||||
->param('platformId', '', new UID(), 'Platform unique ID.')
|
||||
@@ -2306,7 +2306,7 @@ App::delete('/v1/projects/:projectId/templates/sms/:type/:locale')
|
||||
model: Response::MODEL_SMS_TEMPLATE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('projectId', '', new UID(), 'Project unique ID.')
|
||||
->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type')
|
||||
@@ -2356,7 +2356,7 @@ App::delete('/v1/projects/:projectId/templates/email/:type/:locale')
|
||||
model: Response::MODEL_EMAIL_TEMPLATE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::JSON
|
||||
))
|
||||
->param('projectId', '', new UID(), 'Project unique ID.')
|
||||
->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type')
|
||||
|
||||
@@ -8,7 +8,7 @@ use Appwrite\Network\Validator\CNAME;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Rules;
|
||||
use Appwrite\Utopia\Response;
|
||||
use Utopia\App;
|
||||
@@ -281,7 +281,7 @@ App::delete('/v1/proxy/rules/:ruleId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('ruleId', '', new UID(), 'Rule ID.')
|
||||
->inject('response')
|
||||
|
||||
@@ -12,7 +12,7 @@ use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\MethodType;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Buckets;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Files;
|
||||
@@ -340,7 +340,7 @@ App::delete('/v1/storage/buckets/:bucketId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('bucketId', '', new UID(), 'Bucket unique ID.')
|
||||
->inject('response')
|
||||
@@ -386,7 +386,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
|
||||
namespace: 'storage',
|
||||
name: 'createFile',
|
||||
description: '/docs/references/storage/create-file.md',
|
||||
methodType: MethodType::UPLOAD,
|
||||
type: MethodType::UPLOAD,
|
||||
auth: [AuthType::SESSION, AuthType::KEY, AuthType::JWT],
|
||||
requestType: 'multipart/form-data',
|
||||
responses: [
|
||||
@@ -915,8 +915,8 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview')
|
||||
model: Response::MODEL_NONE
|
||||
)
|
||||
],
|
||||
methodType: MethodType::LOCATION,
|
||||
responseType: ResponseType::IMAGE
|
||||
type: MethodType::LOCATION,
|
||||
contentType: ContentType::IMAGE
|
||||
))
|
||||
->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).')
|
||||
->param('fileId', '', new UID(), 'File ID')
|
||||
@@ -1092,8 +1092,8 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/download')
|
||||
model: Response::MODEL_NONE
|
||||
)
|
||||
],
|
||||
methodType: MethodType::LOCATION,
|
||||
responseType: ResponseType::ANY,
|
||||
type: MethodType::LOCATION,
|
||||
contentType: ContentType::ANY,
|
||||
))
|
||||
->param('bucketId', '', new UID(), 'Storage bucket ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).')
|
||||
->param('fileId', '', new UID(), 'File ID.')
|
||||
@@ -1240,8 +1240,8 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/view')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
methodType: MethodType::LOCATION,
|
||||
responseType: ResponseType::ANY,
|
||||
type: MethodType::LOCATION,
|
||||
contentType: ContentType::ANY,
|
||||
))
|
||||
->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).')
|
||||
->param('fileId', '', new UID(), 'File ID.')
|
||||
@@ -1674,7 +1674,7 @@ App::delete('/v1/storage/buckets/:bucketId/files/:fileId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('bucketId', '', new UID(), 'Storage bucket unique ID. You can create a new storage bucket using the Storage service [server integration](https://appwrite.io/docs/server/storage#createBucket).')
|
||||
->param('fileId', '', new UID(), 'File ID.')
|
||||
|
||||
@@ -14,7 +14,7 @@ use Appwrite\Platform\Workers\Deletes;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Template\Template;
|
||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Memberships;
|
||||
@@ -377,7 +377,7 @@ App::delete('/v1/teams/:teamId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('teamId', '', new UID(), 'Team ID.')
|
||||
->inject('response')
|
||||
@@ -1214,7 +1214,7 @@ App::delete('/v1/teams/:teamId/memberships/:membershipId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('teamId', '', new UID(), 'Team ID.')
|
||||
->param('membershipId', '', new UID(), 'Membership ID.')
|
||||
|
||||
@@ -18,7 +18,7 @@ use Appwrite\Network\Validator\Email;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Database\Validator\CustomId;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Identities;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Targets;
|
||||
@@ -1903,11 +1903,11 @@ App::delete('/v1/users/:userId/mfa/authenticators/:type')
|
||||
auth: [AuthType::KEY],
|
||||
responses: [
|
||||
new SDKResponse(
|
||||
code: Response::STATUS_CODE_OK,
|
||||
model: Response::MODEL_USER,
|
||||
code: Response::STATUS_CODE_NOCONTENT,
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('userId', '', new UID(), 'User ID.')
|
||||
->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator.')
|
||||
@@ -2090,7 +2090,7 @@ App::delete('/v1/users/:userId/sessions/:sessionId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('userId', '', new UID(), 'User ID.')
|
||||
->param('sessionId', '', new UID(), 'Session ID.')
|
||||
@@ -2140,7 +2140,7 @@ App::delete('/v1/users/:userId/sessions')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('userId', '', new UID(), 'User ID.')
|
||||
->inject('response')
|
||||
@@ -2189,7 +2189,7 @@ App::delete('/v1/users/:userId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('userId', '', new UID(), 'User ID.')
|
||||
->inject('response')
|
||||
@@ -2238,7 +2238,7 @@ App::delete('/v1/users/:userId/targets/:targetId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('userId', '', new UID(), 'User ID.')
|
||||
->param('targetId', '', new UID(), 'Target ID.')
|
||||
@@ -2295,7 +2295,7 @@ App::delete('/v1/users/identities/:identityId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE,
|
||||
contentType: ContentType::NONE,
|
||||
))
|
||||
->param('identityId', '', new UID(), 'Identity ID.')
|
||||
->inject('response')
|
||||
|
||||
@@ -8,7 +8,7 @@ use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\MethodType;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Database\Validator\Queries\Installations;
|
||||
use Appwrite\Utopia\Request;
|
||||
use Appwrite\Utopia\Response;
|
||||
@@ -285,8 +285,8 @@ App::get('/v1/vcs/github/authorize')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::HTML,
|
||||
methodType: MethodType::WEBAUTH,
|
||||
contentType: ContentType::HTML,
|
||||
type: MethodType::WEBAUTH,
|
||||
hide: true,
|
||||
))
|
||||
->param('success', '', fn ($clients) => new Host($clients), 'URL to redirect back to console after a successful installation attempt.', true, ['clients'])
|
||||
@@ -1192,7 +1192,7 @@ App::delete('/v1/vcs/installations/:installationId')
|
||||
model: Response::MODEL_NONE,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::NONE
|
||||
contentType: ContentType::NONE
|
||||
))
|
||||
->param('installationId', '', new Text(256), 'Installation Id')
|
||||
->inject('response')
|
||||
|
||||
@@ -13,7 +13,7 @@ use Appwrite\Network\Validator\Origin;
|
||||
use Appwrite\SDK\AuthType;
|
||||
use Appwrite\SDK\Method;
|
||||
use Appwrite\SDK\Response as SDKResponse;
|
||||
use Appwrite\SDK\ResponseType;
|
||||
use Appwrite\SDK\ContentType;
|
||||
use Appwrite\Utopia\Request;
|
||||
use Appwrite\Utopia\Request\Filters\V16 as RequestV16;
|
||||
use Appwrite\Utopia\Request\Filters\V17 as RequestV17;
|
||||
@@ -111,7 +111,7 @@ function router(App $utopia, Database $dbForConsole, callable $getProjectDB, Swo
|
||||
model: Response::MODEL_EXECUTION,
|
||||
)
|
||||
],
|
||||
responseType: ResponseType::MULTIPART,
|
||||
contentType: ContentType::MULTIPART,
|
||||
requestType: 'application/json',
|
||||
));
|
||||
} else {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
namespace Appwrite\SDK;
|
||||
|
||||
enum ResponseType: string
|
||||
enum ContentType: string
|
||||
{
|
||||
case NONE = '';
|
||||
case JSON = 'application/json';
|
||||
+11
-11
@@ -20,7 +20,7 @@ class Method
|
||||
* @param string $description
|
||||
* @param array<AuthType> $auth
|
||||
* @param array<SDKResponse> $responses
|
||||
* @param ResponseType $responseType
|
||||
* @param ContentType $responseType
|
||||
* @param MethodType|null $methodType
|
||||
* @param bool $deprecated
|
||||
* @param array|bool $hide
|
||||
@@ -37,8 +37,8 @@ class Method
|
||||
protected string $description,
|
||||
protected array $auth,
|
||||
protected array $responses,
|
||||
protected ResponseType $responseType = ResponseType::JSON,
|
||||
protected ?MethodType $methodType = null,
|
||||
protected ContentType $contentType = ContentType::JSON,
|
||||
protected ?MethodType $type = null,
|
||||
protected bool $deprecated = false,
|
||||
protected array|bool $hide = false,
|
||||
protected bool $packaging = false,
|
||||
@@ -157,14 +157,14 @@ class Method
|
||||
return $this->responses;
|
||||
}
|
||||
|
||||
public function getResponseType(): ResponseType
|
||||
public function getContentType(): ContentType
|
||||
{
|
||||
return $this->responseType;
|
||||
return $this->contentType;
|
||||
}
|
||||
|
||||
public function getMethodType(): ?MethodType
|
||||
public function getType(): ?MethodType
|
||||
{
|
||||
return $this->methodType;
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
public function isDeprecated(): bool
|
||||
@@ -235,15 +235,15 @@ class Method
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setResponseType(ResponseType $responseType): self
|
||||
public function setContentType(ContentType $contentType): self
|
||||
{
|
||||
$this->responseType = $responseType;
|
||||
$this->contentType = $contentType;
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function setMethodType(?MethodType $methodType): self
|
||||
public function setType(?MethodType $type): self
|
||||
{
|
||||
$this->methodType = $methodType;
|
||||
$this->type = $type;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,8 +11,7 @@ class Response
|
||||
*/
|
||||
public function __construct(
|
||||
private int $code,
|
||||
private string|array $model,
|
||||
private string $description = '',
|
||||
private string|array $model
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -25,9 +24,4 @@ class Response
|
||||
{
|
||||
return $this->model;
|
||||
}
|
||||
|
||||
public function getDescription(): string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ class OpenAPI3 extends Format
|
||||
}
|
||||
|
||||
$desc = (!empty($sdk->getDescription())) ? \realpath(__DIR__ . '/../../../../' . $sdk->getDescription()) : null;
|
||||
$produces = ($sdk->getResponseType())->value;
|
||||
$produces = ($sdk->getContentType())->value;
|
||||
$routeSecurity = $sdk->getAuth() ?? [];
|
||||
$sdkPlatforms = [];
|
||||
|
||||
@@ -187,7 +187,7 @@ class OpenAPI3 extends Format
|
||||
'method' => $method,
|
||||
'weight' => $route->getOrder(),
|
||||
'cookies' => $route->getLabel('sdk.cookies', false),
|
||||
'type' => $sdk->getMethodType()->value ?? '',
|
||||
'type' => $sdk->getType()->value ?? '',
|
||||
'deprecated' => $sdk->isDeprecated(),
|
||||
'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md',
|
||||
'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '',
|
||||
@@ -224,7 +224,6 @@ class OpenAPI3 extends Format
|
||||
/** @var \Appwrite\SDK\Response $response */
|
||||
$additionalMethod['responses'][] = [
|
||||
'code' => $response->getCode(),
|
||||
'description' => $response->getDescription(),
|
||||
'model' => '#/components/schemas/' . $response->getModel()
|
||||
];
|
||||
}
|
||||
@@ -360,7 +359,7 @@ class OpenAPI3 extends Format
|
||||
$node['schema']['x-example'] = false;
|
||||
break;
|
||||
case 'Appwrite\Utopia\Database\Validator\CustomId':
|
||||
if ($sdk->getMethodType() === MethodType::UPLOAD) {
|
||||
if ($sdk->getType() === MethodType::UPLOAD) {
|
||||
$node['schema']['x-upload-id'] = true;
|
||||
}
|
||||
$node['schema']['type'] = $validator->getType();
|
||||
|
||||
@@ -145,7 +145,7 @@ class Swagger2 extends Format
|
||||
}
|
||||
|
||||
$desc = (!empty($sdk->getDescription())) ? \realpath(__DIR__ . '/../../../../' . $sdk->getDescription()) : null;
|
||||
$produces = ($sdk->getResponseType())->value;
|
||||
$produces = ($sdk->getContentType())->value;
|
||||
$routeSecurity = $sdk->getAuth() ?? [];
|
||||
$sdkPlatforms = [];
|
||||
|
||||
@@ -185,7 +185,7 @@ class Swagger2 extends Format
|
||||
'method' => $method,
|
||||
'weight' => $route->getOrder(),
|
||||
'cookies' => $route->getLabel('sdk.cookies', false),
|
||||
'type' => $sdk->getMethodType()->value ?? '',
|
||||
'type' => $sdk->getType()->value ?? '',
|
||||
'deprecated' => $sdk->isDeprecated(),
|
||||
'demo' => Template::fromCamelCaseToDash($namespace) . '/' . Template::fromCamelCaseToDash($method) . '.md',
|
||||
'edit' => 'https://github.com/appwrite/appwrite/edit/master' . $sdk->getDescription() ?? '',
|
||||
@@ -210,7 +210,8 @@ class Swagger2 extends Format
|
||||
'name' => $method->getMethodName(),
|
||||
'parameters' => [],
|
||||
'required' => [],
|
||||
'responses' => []
|
||||
'responses' => [],
|
||||
'description' => $method->getDescription(),
|
||||
];
|
||||
|
||||
foreach ($method->getParameters() as $name => $param) {
|
||||
@@ -225,7 +226,6 @@ class Swagger2 extends Format
|
||||
/** @var \Appwrite\SDK\Response $response */
|
||||
$additionalMethod['responses'][] = [
|
||||
'code' => $response->getCode(),
|
||||
'description' => $response->getDescription(),
|
||||
'model' => '#/definitions/' . $response->getModel()
|
||||
];
|
||||
}
|
||||
@@ -377,7 +377,7 @@ class Swagger2 extends Format
|
||||
$node['x-example'] = false;
|
||||
break;
|
||||
case 'Appwrite\Utopia\Database\Validator\CustomId':
|
||||
if ($sdk->getMethodType() === MethodType::UPLOAD) {
|
||||
if ($sdk->getType() === MethodType::UPLOAD) {
|
||||
$node['x-upload-id'] = true;
|
||||
}
|
||||
$node['type'] = $validator->getType();
|
||||
|
||||
Reference in New Issue
Block a user