From ddb4a6d666a79fd286c631cd9500cdb4062e6ad9 Mon Sep 17 00:00:00 2001 From: Prem Palanisamy Date: Mon, 18 May 2026 22:04:46 +0100 Subject: [PATCH] Fix doubled /v1 prefix in source-side project calls The SDK Client's endpoint already includes /v1; calling $this->call('GET', '/v1/project') produced http://host/v1/v1/project and 404'd. Existing '/health/version' caller already follows the prefix-less convention. Affects all five project-singleton sources (AuthMethods, Policies, Protocols, Labels, Services). --- src/Migration/Sources/Appwrite.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Migration/Sources/Appwrite.php b/src/Migration/Sources/Appwrite.php index a92833a2ff..413bfc6d26 100644 --- a/src/Migration/Sources/Appwrite.php +++ b/src/Migration/Sources/Appwrite.php @@ -656,7 +656,7 @@ class Appwrite extends Source */ private function exportPolicies(): void { - $response = $this->call('GET', '/v1/project'); + $response = $this->call('GET', '/project'); if (!\is_array($response)) { return; @@ -690,7 +690,7 @@ class Appwrite extends Source */ private function exportAuthMethods(): void { - $response = $this->call('GET', '/v1/project'); + $response = $this->call('GET', '/project'); if (!\is_array($response)) { return; @@ -1697,7 +1697,7 @@ class Appwrite extends Source */ private function exportServices(): void { - $response = $this->call('GET', '/v1/project'); + $response = $this->call('GET', '/project'); if (!\is_array($response)) { return; @@ -1734,7 +1734,7 @@ class Appwrite extends Source */ private function exportLabels(): void { - $response = $this->call('GET', '/v1/project'); + $response = $this->call('GET', '/project'); if (!\is_array($response)) { return; @@ -1756,7 +1756,7 @@ class Appwrite extends Source */ private function exportProtocols(): void { - $response = $this->call('GET', '/v1/project'); + $response = $this->call('GET', '/project'); if (!\is_array($response)) { return;