From 7fff87988a58e6ffac6569ffca69684ef3a8b153 Mon Sep 17 00:00:00 2001 From: Chirag Aggarwal Date: Thu, 1 May 2025 05:11:20 +0000 Subject: [PATCH] chore: temporarily add devkey to console sdk --- app/config/specs/open-api3-1.7.x-client.json | 2 +- app/config/specs/open-api3-1.7.x-console.json | 6 ++++++ app/config/specs/open-api3-latest-console.json | 6 ++++++ app/config/specs/swagger2-1.7.x-client.json | 2 +- app/config/specs/swagger2-1.7.x-console.json | 6 ++++++ app/config/specs/swagger2-latest-console.json | 6 ++++++ src/Appwrite/Platform/Tasks/Specs.php | 7 +++++++ 7 files changed, 33 insertions(+), 2 deletions(-) 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 8f65fa043a..0557b826d1 100644 --- a/app/config/specs/open-api3-1.7.x-client.json +++ b/app/config/specs/open-api3-1.7.x-client.json @@ -10224,7 +10224,7 @@ }, "DevKey": { "type": "apiKey", - "name": "X-Appwrite-DevKey", + "name": "X-Appwrite-Dev-Key", "description": "Your secret development API key", "in": "header" } diff --git a/app/config/specs/open-api3-1.7.x-console.json b/app/config/specs/open-api3-1.7.x-console.json index 4b9334cd68..1f789c7a1e 100644 --- a/app/config/specs/open-api3-1.7.x-console.json +++ b/app/config/specs/open-api3-1.7.x-console.json @@ -43388,6 +43388,12 @@ "x-appwrite": { "demo": "" } + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-Dev-Key", + "description": "Your secret development API key", + "in": "header" } } }, diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index 4b9334cd68..1f789c7a1e 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -43388,6 +43388,12 @@ "x-appwrite": { "demo": "" } + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-Dev-Key", + "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 dc4eaae91f..ce36c0ed4d 100644 --- a/app/config/specs/swagger2-1.7.x-client.json +++ b/app/config/specs/swagger2-1.7.x-client.json @@ -64,7 +64,7 @@ }, "DevKey": { "type": "apiKey", - "name": "X-Appwrite-DevKey", + "name": "X-Appwrite-Dev-Key", "description": "Your secret development API key", "in": "header" } diff --git a/app/config/specs/swagger2-1.7.x-console.json b/app/config/specs/swagger2-1.7.x-console.json index 33e12bbef5..4995e33b43 100644 --- a/app/config/specs/swagger2-1.7.x-console.json +++ b/app/config/specs/swagger2-1.7.x-console.json @@ -73,6 +73,12 @@ "x-appwrite": { "demo": "" } + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-Dev-Key", + "description": "Your secret development API key", + "in": "header" } }, "paths": { diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 33e12bbef5..4995e33b43 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -73,6 +73,12 @@ "x-appwrite": { "demo": "" } + }, + "DevKey": { + "type": "apiKey", + "name": "X-Appwrite-Dev-Key", + "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 1f3109996e..bbd1277d8d 100644 --- a/src/Appwrite/Platform/Tasks/Specs.php +++ b/src/Appwrite/Platform/Tasks/Specs.php @@ -179,6 +179,13 @@ class Specs extends Action 'description' => '', 'in' => 'header', ], + // NOTE: Temporarily added for testing + 'DevKey' => [ + 'type' => 'apiKey', + 'name' => 'X-Appwrite-Dev-Key', + 'description' => 'Your secret development API key', + 'in' => 'header', + ], ], ];