From b1cbf8e21e331a2405c849e874e87d093b88ea93 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 1 May 2025 04:54:13 +0000 Subject: [PATCH] chore: add devkey to client keys --- app/config/specs/open-api3-1.7.x-client.json | 6 ++++++ app/config/specs/open-api3-latest-client.json | 6 ++++++ app/config/specs/swagger2-1.7.x-client.json | 6 ++++++ app/config/specs/swagger2-latest-client.json | 6 ++++++ src/Appwrite/Platform/Tasks/Specs.php | 8 +++++++- 5 files changed, 31 insertions(+), 1 deletion(-) diff --git a/app/config/specs/open-api3-1.7.x-client.json b/app/config/specs/open-api3-1.7.x-client.json index a539e26f03..8f65fa043a 100644 --- a/app/config/specs/open-api3-1.7.x-client.json +++ b/app/config/specs/open-api3-1.7.x-client.json @@ -10221,6 +10221,12 @@ "name": "X-Appwrite-Session", "description": "The user session to authenticate with", "in": "header" + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-DevKey", + "description": "Your secret development API key", + "in": "header" } } }, diff --git a/app/config/specs/open-api3-latest-client.json b/app/config/specs/open-api3-latest-client.json index a539e26f03..8f65fa043a 100644 --- a/app/config/specs/open-api3-latest-client.json +++ b/app/config/specs/open-api3-latest-client.json @@ -10221,6 +10221,12 @@ "name": "X-Appwrite-Session", "description": "The user session to authenticate with", "in": "header" + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-DevKey", + "description": "Your secret development API key", + "in": "header" } } }, diff --git a/app/config/specs/swagger2-1.7.x-client.json b/app/config/specs/swagger2-1.7.x-client.json index dfe5820976..dc4eaae91f 100644 --- a/app/config/specs/swagger2-1.7.x-client.json +++ b/app/config/specs/swagger2-1.7.x-client.json @@ -61,6 +61,12 @@ "name": "X-Appwrite-Session", "description": "The user session to authenticate with", "in": "header" + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-DevKey", + "description": "Your secret development API key", + "in": "header" } }, "paths": { diff --git a/app/config/specs/swagger2-latest-client.json b/app/config/specs/swagger2-latest-client.json index dfe5820976..dc4eaae91f 100644 --- a/app/config/specs/swagger2-latest-client.json +++ b/app/config/specs/swagger2-latest-client.json @@ -61,6 +61,12 @@ "name": "X-Appwrite-Session", "description": "The user session to authenticate with", "in": "header" + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-DevKey", + "description": "Your secret development API key", + "in": "header" } }, "paths": { diff --git a/src/Appwrite/Platform/Tasks/Specs.php b/src/Appwrite/Platform/Tasks/Specs.php index 73c445eaaf..37a13b3245 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -102,7 +102,13 @@ class Specs extends Action 'name' => 'X-Appwrite-Session', 'description' => 'The user session to authenticate with', 'in' => 'header', - ] + ], + 'DevKey' => [ + 'type' => 'apiKey', + 'name' => 'X-Appwrite-DevKey', + 'description' => 'Your secret development API key', + 'in' => 'header', + ], ], APP_PLATFORM_SERVER => [ 'Project' => [