From eeed8dbc16afd134e1f0b16337990a355029c05c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Wed, 5 Feb 2025 14:15:25 +0100 Subject: [PATCH] Fix site creation namespace --- app/config/specs/open-api3-latest-console.json | 6 +++--- app/config/specs/open-api3-latest-server.json | 6 +++--- app/config/specs/swagger2-latest-console.json | 6 +++--- app/config/specs/swagger2-latest-server.json | 6 +++--- src/Appwrite/Platform/Modules/Sites/Http/Sites/Create.php | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/config/specs/open-api3-latest-console.json b/app/config/specs/open-api3-latest-console.json index c4109d30bf..eefdd83e45 100644 --- a/app/config/specs/open-api3-latest-console.json +++ b/app/config/specs/open-api3-latest-console.json @@ -23765,9 +23765,9 @@ }, "post": { "summary": "Create site", - "operationId": "siteCreate", + "operationId": "sitesCreate", "tags": [ - "site" + "sites" ], "description": "", "responses": { @@ -23788,7 +23788,7 @@ "cookies": false, "type": "", "deprecated": false, - "demo": "site\/create.md", + "demo": "sites\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new site.", "rate-limit": 0, "rate-time": 3600, diff --git a/app/config/specs/open-api3-latest-server.json b/app/config/specs/open-api3-latest-server.json index bfca5cc34d..63149036e5 100644 --- a/app/config/specs/open-api3-latest-server.json +++ b/app/config/specs/open-api3-latest-server.json @@ -16155,9 +16155,9 @@ }, "post": { "summary": "Create site", - "operationId": "siteCreate", + "operationId": "sitesCreate", "tags": [ - "site" + "sites" ], "description": "", "responses": { @@ -16178,7 +16178,7 @@ "cookies": false, "type": "", "deprecated": false, - "demo": "site\/create.md", + "demo": "sites\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new site.", "rate-limit": 0, "rate-time": 3600, diff --git a/app/config/specs/swagger2-latest-console.json b/app/config/specs/swagger2-latest-console.json index 48c5a5ed6f..cb6f13f0e9 100644 --- a/app/config/specs/swagger2-latest-console.json +++ b/app/config/specs/swagger2-latest-console.json @@ -24257,7 +24257,7 @@ }, "post": { "summary": "Create site", - "operationId": "siteCreate", + "operationId": "sitesCreate", "consumes": [ "application\/json" ], @@ -24265,7 +24265,7 @@ "application\/json" ], "tags": [ - "site" + "sites" ], "description": "", "responses": { @@ -24282,7 +24282,7 @@ "cookies": false, "type": "", "deprecated": false, - "demo": "site\/create.md", + "demo": "sites\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new site.", "rate-limit": 0, "rate-time": 3600, diff --git a/app/config/specs/swagger2-latest-server.json b/app/config/specs/swagger2-latest-server.json index 8fc7c9bef0..380c0d4244 100644 --- a/app/config/specs/swagger2-latest-server.json +++ b/app/config/specs/swagger2-latest-server.json @@ -16627,7 +16627,7 @@ }, "post": { "summary": "Create site", - "operationId": "siteCreate", + "operationId": "sitesCreate", "consumes": [ "application\/json" ], @@ -16635,7 +16635,7 @@ "application\/json" ], "tags": [ - "site" + "sites" ], "description": "", "responses": { @@ -16652,7 +16652,7 @@ "cookies": false, "type": "", "deprecated": false, - "demo": "site\/create.md", + "demo": "sites\/create.md", "edit": "https:\/\/github.com\/appwrite\/appwrite\/edit\/masterCreate a new site.", "rate-limit": 0, "rate-time": 3600, diff --git a/src/Appwrite/Platform/Modules/Sites/Http/Sites/Create.php b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Create.php index 2f21bfd24e..079f2fec49 100644 --- a/src/Appwrite/Platform/Modules/Sites/Http/Sites/Create.php +++ b/src/Appwrite/Platform/Modules/Sites/Http/Sites/Create.php @@ -53,7 +53,7 @@ class Create extends Base ->label('audits.event', 'site.create') ->label('audits.resource', 'site/{response.$id}') ->label('sdk', new Method( - namespace: 'site', + namespace: 'sites', name: 'create', description: <<