Make all delete routes return none

This commit is contained in:
Bradley Schofield
2025-01-14 18:09:37 +09:00
parent efd8dc16b3
commit ec44b1f272
18 changed files with 162 additions and 284 deletions
@@ -4770,7 +4770,7 @@
"200": {
"description": "Documents List",
"content": {
"application\/json": {
"": {
"schema": {
"$ref": "#\/components\/schemas\/documentList"
}
@@ -8339,7 +8339,7 @@
"200": {
"description": "Documents List",
"content": {
"application\/json": {
"": {
"schema": {
"$ref": "#\/components\/schemas\/documentList"
}
@@ -23551,7 +23551,7 @@
"200": {
"description": "EmailTemplate",
"content": {
"application\/json": {
"": {
"schema": {
"$ref": "#\/components\/schemas\/emailTemplate"
}
@@ -24244,7 +24244,7 @@
"200": {
"description": "SmsTemplate",
"content": {
"application\/json": {
"": {
"schema": {
"$ref": "#\/components\/schemas\/smsTemplate"
}
@@ -29480,7 +29480,7 @@
"200": {
"description": "User",
"content": {
"application\/json": {
"": {
"schema": {
"$ref": "#\/components\/schemas\/user"
}
@@ -7877,7 +7877,7 @@
"200": {
"description": "Documents List",
"content": {
"application\/json": {
"": {
"schema": {
"$ref": "#\/components\/schemas\/documentList"
}
@@ -21141,7 +21141,7 @@
"200": {
"description": "User",
"content": {
"application\/json": {
"": {
"schema": {
"$ref": "#\/components\/schemas\/user"
}
+11 -33
View File
@@ -367,9 +367,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -780,9 +778,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -1815,9 +1811,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -2501,9 +2495,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -2783,9 +2775,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -4950,9 +4940,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -5238,9 +5226,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -6289,9 +6275,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -6708,9 +6692,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"storage"
],
@@ -7445,9 +7427,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"teams"
],
@@ -7875,9 +7855,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"teams"
],
+40 -120
View File
@@ -225,9 +225,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -423,9 +421,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -831,9 +827,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -1852,9 +1846,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -2535,9 +2527,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -2813,9 +2803,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -5161,9 +5149,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -5589,9 +5575,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -8035,9 +8019,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -8534,9 +8516,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -8822,9 +8802,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -9270,9 +9248,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -10670,9 +10646,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"functions"
],
@@ -11044,9 +11018,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"functions"
],
@@ -11615,9 +11587,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"functions"
],
@@ -12076,9 +12046,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"functions"
],
@@ -15189,9 +15157,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -17804,9 +17770,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -18332,9 +18296,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -18714,9 +18676,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -20057,9 +20017,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"migrations"
],
@@ -20475,9 +20433,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"project"
],
@@ -20951,9 +20907,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"projects"
],
@@ -22435,9 +22389,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"projects"
],
@@ -22999,9 +22951,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"projects"
],
@@ -24086,9 +24036,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"projects"
],
@@ -24766,9 +24714,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"projects"
],
@@ -25365,9 +25311,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"projects"
],
@@ -25726,9 +25670,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"proxy"
],
@@ -26263,9 +26205,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"storage"
],
@@ -26670,9 +26610,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"storage"
],
@@ -27563,9 +27501,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"teams"
],
@@ -28067,9 +28003,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"teams"
],
@@ -28812,9 +28746,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -29549,9 +29481,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -30077,9 +30007,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -30908,9 +30836,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -30968,9 +30894,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -31473,9 +31397,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -32468,9 +32390,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"vcs"
],
+28 -84
View File
@@ -385,9 +385,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -803,9 +801,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -1852,9 +1848,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -2406,9 +2400,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"account"
],
@@ -4642,9 +4634,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -5075,9 +5065,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -7543,9 +7531,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -8050,9 +8036,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -8344,9 +8328,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -8707,9 +8689,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"databases"
],
@@ -9552,9 +9532,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"functions"
],
@@ -9931,9 +9909,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"functions"
],
@@ -10512,9 +10488,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"functions"
],
@@ -10896,9 +10870,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"functions"
],
@@ -14061,9 +14033,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -16701,9 +16671,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -17236,9 +17204,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -17624,9 +17590,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"messaging"
],
@@ -18118,9 +18082,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"storage"
],
@@ -18534,9 +18496,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"storage"
],
@@ -19287,9 +19247,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"teams"
],
@@ -19727,9 +19685,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"teams"
],
@@ -20485,9 +20441,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -21155,9 +21109,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -21690,9 +21642,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -22533,9 +22483,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -22594,9 +22542,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
@@ -23105,9 +23051,7 @@
"consumes": [
"application\/json"
],
"produces": [
"application\/json"
],
"produces": [],
"tags": [
"users"
],
+7 -6
View File
@@ -469,7 +469,7 @@ App::delete('/v1/account')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON
responseType: ResponseType::NONE
))
->inject('user')
->inject('project')
@@ -571,7 +571,7 @@ App::delete('/v1/account/sessions')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON
responseType: ResponseType::NONE
))
->label('abuse-limit', 100)
->inject('request')
@@ -695,7 +695,7 @@ App::delete('/v1/account/sessions/:sessionId')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON
responseType: ResponseType::NONE
))
->label('abuse-limit', 100)
->param('sessionId', '', new UID(), 'Session ID. Use the string \'current\' to delete the current device session.')
@@ -2008,6 +2008,7 @@ App::post('/v1/account/tokens/magic-url')
$senderEmail = System::getEnv('_APP_SYSTEM_EMAIL_ADDRESS', APP_EMAIL_TEAM);
$senderName = System::getEnv('_APP_SYSTEM_EMAIL_NAME', APP_NAME . ' Server');
$replyTo = "";
if ($smtpEnabled) {
@@ -4230,7 +4231,7 @@ App::delete('/v1/account/mfa/authenticators/:type')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON,
responseType: ResponseType::NONE
))
->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator.')
->inject('response')
@@ -4706,7 +4707,7 @@ App::delete('/v1/account/targets/:targetId/push')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON,
responseType: ResponseType::NONE
))
->param('targetId', '', new UID(), 'Target ID.')
->inject('queueForEvents')
@@ -4828,7 +4829,7 @@ App::delete('/v1/account/identities/:identityId')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON,
responseType: ResponseType::NONE
))
->param('identityId', '', new UID(), 'Identity ID.')
->inject('response')
+6 -6
View File
@@ -785,7 +785,7 @@ App::delete('/v1/databases/:databaseId')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON
responseType: ResponseType::NONE
))
->param('databaseId', '', new UID(), 'Database ID.')
->inject('response')
@@ -1204,7 +1204,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON
responseType: ResponseType::NONE
))
->param('databaseId', '', new UID(), 'Database ID.')
->param('collectionId', '', new UID(), 'Collection ID.')
@@ -2604,7 +2604,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/attributes/:key
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON
responseType: ResponseType::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).')
@@ -3030,7 +3030,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/indexes/:key')
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON
responseType: ResponseType::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).')
@@ -4192,7 +4192,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/documents/:docu
model: Response::MODEL_NONE,
)
],
responseType: ResponseType::JSON,
responseType: ResponseType::NONE,
offlineModel: '/databases/{databaseId}/collections/{collectionId}/documents',
offlineKey: '{documentId}'
))
@@ -4317,7 +4317,7 @@ App::delete('/v1/databases/:databaseId/collections/:collectionId/documents')
model: Response::MODEL_DOCUMENT_LIST,
)
],
responseType: ResponseType::JSON,
responseType: ResponseType::NONE,
offlineModel: '/databases/{databaseId}/collections/{collectionId}/documents',
offlineKey: '{documentId}'
))
+8 -4
View File
@@ -1188,7 +1188,8 @@ App::delete('/v1/functions/:functionId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('functionId', '', new UID(), 'Function ID.')
->inject('response')
@@ -1605,7 +1606,8 @@ App::delete('/v1/functions/:functionId/deployments/:deploymentId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('functionId', '', new UID(), 'Function ID.')
->param('deploymentId', '', new UID(), 'Deployment ID.')
@@ -2404,7 +2406,8 @@ App::delete('/v1/functions/:functionId/executions/:executionId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('functionId', '', new UID(), 'Function ID.')
->param('executionId', '', new UID(), 'Execution ID.')
@@ -2700,7 +2703,8 @@ App::delete('/v1/functions/:functionId/variables/:variableId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('functionId', '', new UID(), 'Function unique ID.', false)
->param('variableId', '', new UID(), 'Variable unique ID.', false)
+9 -4
View File
@@ -14,6 +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\Utopia\Database\Validator\CompoundUID;
use Appwrite\Utopia\Database\Validator\CustomId;
use Appwrite\Utopia\Database\Validator\Queries\Messages;
@@ -2050,7 +2051,8 @@ App::delete('/v1/messaging/providers/:providerId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('providerId', '', new UID(), 'Provider ID.')
->inject('queueForEvents')
@@ -2378,7 +2380,8 @@ App::delete('/v1/messaging/topics/:topicId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('topicId', '', new UID(), 'Topic ID.')
->inject('queueForEvents')
@@ -2751,7 +2754,8 @@ App::delete('/v1/messaging/topics/:topicId/subscribers/:subscriberId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('topicId', '', new UID(), 'Topic ID. The topic ID subscribed to.')
->param('subscriberId', '', new UID(), 'Subscriber ID.')
@@ -4152,7 +4156,8 @@ App::delete('/v1/messaging/messages/:messageId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('messageId', '', new UID(), 'Message ID.')
->inject('dbForProject')
+3 -1
View File
@@ -10,6 +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\Utopia\Database\Validator\Queries\Migrations;
use Appwrite\Utopia\Request;
use Appwrite\Utopia\Response;
@@ -1143,7 +1144,8 @@ App::delete('/v1/migrations/:migrationId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('migrationId', '', new UID(), 'Migration ID.')
->inject('response')
+3 -1
View File
@@ -4,6 +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\Utopia\Response;
use Utopia\App;
use Utopia\Database\Database;
@@ -501,7 +502,8 @@ App::delete('/v1/project/variables/:variableId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('variableId', '', new UID(), 'Variable unique ID.', false)
->inject('project')
+13 -6
View File
@@ -13,6 +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\Template\Template;
use Appwrite\Utopia\Database\Validator\ProjectId;
use Appwrite\Utopia\Database\Validator\Queries\Projects;
@@ -1083,7 +1084,8 @@ App::delete('/v1/projects/:projectId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('projectId', '', new UID(), 'Project unique ID.')
->inject('response')
@@ -1377,7 +1379,8 @@ App::delete('/v1/projects/:projectId/webhooks/:webhookId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('projectId', '', new UID(), 'Project unique ID.')
->param('webhookId', '', new UID(), 'Webhook unique ID.')
@@ -1609,7 +1612,8 @@ App::delete('/v1/projects/:projectId/keys/:keyId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('projectId', '', new UID(), 'Project unique ID.')
->param('keyId', '', new UID(), 'Key unique ID.')
@@ -1885,7 +1889,8 @@ App::delete('/v1/projects/:projectId/platforms/:platformId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('projectId', '', new UID(), 'Project unique ID.')
->param('platformId', '', new UID(), 'Platform unique ID.')
@@ -2300,7 +2305,8 @@ App::delete('/v1/projects/:projectId/templates/sms/:type/:locale')
code: Response::STATUS_CODE_OK,
model: Response::MODEL_SMS_TEMPLATE,
)
]
],
responseType: ResponseType::NONE
))
->param('projectId', '', new UID(), 'Project unique ID.')
->param('type', '', new WhiteList(Config::getParam('locale-templates')['sms'] ?? []), 'Template type')
@@ -2349,7 +2355,8 @@ App::delete('/v1/projects/:projectId/templates/email/:type/:locale')
code: Response::STATUS_CODE_OK,
model: Response::MODEL_EMAIL_TEMPLATE,
)
]
],
responseType: ResponseType::NONE
))
->param('projectId', '', new UID(), 'Project unique ID.')
->param('type', '', new WhiteList(Config::getParam('locale-templates')['email'] ?? []), 'Template type')
+3 -1
View File
@@ -8,6 +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\Utopia\Database\Validator\Queries\Rules;
use Appwrite\Utopia\Response;
use Utopia\App;
@@ -279,7 +280,8 @@ App::delete('/v1/proxy/rules/:ruleId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('ruleId', '', new UID(), 'Rule ID.')
->inject('response')
+4 -2
View File
@@ -339,7 +339,8 @@ App::delete('/v1/storage/buckets/:bucketId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('bucketId', '', new UID(), 'Bucket unique ID.')
->inject('response')
@@ -1672,7 +1673,8 @@ App::delete('/v1/storage/buckets/:bucketId/files/:fileId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::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.')
+5 -2
View File
@@ -14,6 +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\Template\Template;
use Appwrite\Utopia\Database\Validator\CustomId;
use Appwrite\Utopia\Database\Validator\Queries\Memberships;
@@ -382,7 +383,8 @@ App::delete('/v1/teams/:teamId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('teamId', '', new UID(), 'Team ID.')
->inject('response')
@@ -1221,7 +1223,8 @@ App::delete('/v1/teams/:teamId/memberships/:membershipId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('teamId', '', new UID(), 'Team ID.')
->param('membershipId', '', new UID(), 'Membership ID.')
+13 -6
View File
@@ -18,6 +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\Utopia\Database\Validator\CustomId;
use Appwrite\Utopia\Database\Validator\Queries\Identities;
use Appwrite\Utopia\Database\Validator\Queries\Targets;
@@ -1905,7 +1906,8 @@ App::delete('/v1/users/:userId/mfa/authenticators/:type')
code: Response::STATUS_CODE_OK,
model: Response::MODEL_USER,
)
]
],
responseType: ResponseType::NONE
))
->param('userId', '', new UID(), 'User ID.')
->param('type', null, new WhiteList([Type::TOTP]), 'Type of authenticator.')
@@ -2087,7 +2089,8 @@ App::delete('/v1/users/:userId/sessions/:sessionId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('userId', '', new UID(), 'User ID.')
->param('sessionId', '', new UID(), 'Session ID.')
@@ -2136,7 +2139,8 @@ App::delete('/v1/users/:userId/sessions')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('userId', '', new UID(), 'User ID.')
->inject('response')
@@ -2184,7 +2188,8 @@ App::delete('/v1/users/:userId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('userId', '', new UID(), 'User ID.')
->inject('response')
@@ -2232,7 +2237,8 @@ App::delete('/v1/users/:userId/targets/:targetId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('userId', '', new UID(), 'User ID.')
->param('targetId', '', new UID(), 'Target ID.')
@@ -2288,7 +2294,8 @@ App::delete('/v1/users/identities/:identityId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE,
))
->param('identityId', '', new UID(), 'Identity ID.')
->inject('response')
+2 -1
View File
@@ -1191,7 +1191,8 @@ App::delete('/v1/vcs/installations/:installationId')
code: Response::STATUS_CODE_NOCONTENT,
model: Response::MODEL_NONE,
)
]
],
responseType: ResponseType::NONE
))
->param('installationId', '', new Text(256), 'Installation Id')
->inject('response')