From 3a8818883fa725b717aeedbd838cba6ca42e0f33 Mon Sep 17 00:00:00 2001 From: Zohar Zilberman Date: Fri, 29 May 2026 21:28:40 +0300 Subject: [PATCH] Register bots create/delete in the OpenAPI MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The bots OpenApi derive only listed paths(get_all, get_one, update), so the POST /bots (createBot) and DELETE /bots/{id} (deleteBot) operations — and the NewBot request-body schema — were missing from the generated openapi.yaml, and thus from the generated JS SDK. This regressed the frontend's bot-creation form, which imports NewBot from @platzio/sdk. Peer collections (secrets, envs) already register the full set; bring bots in line. Co-Authored-By: Claude Opus 4.8 --- api/src/routes/v2/bots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/routes/v2/bots.rs b/api/src/routes/v2/bots.rs index e6455c4..e588f82 100644 --- a/api/src/routes/v2/bots.rs +++ b/api/src/routes/v2/bots.rs @@ -136,6 +136,6 @@ async fn delete(identity: ApiIdentity, id: web::Path) -> ApiResult { name = "Bots", description = "This collection contains all bots in Platz.", )), - paths(get_all, get_one, update), + paths(get_all, get_one, create, update, delete), )] pub(super) struct OpenApi;