From 4ac126eade0523064bbbf386c2e6d97c00fec1e4 Mon Sep 17 00:00:00 2001 From: karencfv Date: Fri, 8 Nov 2024 11:01:39 +1300 Subject: [PATCH] missed one --- clickhouse-admin/api/src/lib.rs | 2 +- openapi/clickhouse-admin-server.json | 60 ++++++++++++++-------------- 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/clickhouse-admin/api/src/lib.rs b/clickhouse-admin/api/src/lib.rs index 7a1d39e2fb..8b7dff60f3 100644 --- a/clickhouse-admin/api/src/lib.rs +++ b/clickhouse-admin/api/src/lib.rs @@ -99,7 +99,7 @@ pub trait ClickhouseAdminServerApi { /// directory and enable the SMF service. #[endpoint { method = PUT, - path = "/gen-config-and-enable" + path = "/config" }] async fn generate_config_and_enable_svc( rqctx: RequestContext, diff --git a/openapi/clickhouse-admin-server.json b/openapi/clickhouse-admin-server.json index f2d6a9b72c..bb88de2f0f 100644 --- a/openapi/clickhouse-admin-server.json +++ b/openapi/clickhouse-admin-server.json @@ -10,36 +10,7 @@ "version": "0.0.1" }, "paths": { - "/distributed-ddl-queue": { - "get": { - "summary": "Contains information about distributed ddl queries (ON CLUSTER clause)", - "description": "that were executed on a cluster.", - "operationId": "distributed_ddl_queue", - "responses": { - "200": { - "description": "successful operation", - "content": { - "application/json": { - "schema": { - "title": "Array_of_DistributedDdlQueue", - "type": "array", - "items": { - "$ref": "#/components/schemas/DistributedDdlQueue" - } - } - } - } - }, - "4XX": { - "$ref": "#/components/responses/Error" - }, - "5XX": { - "$ref": "#/components/responses/Error" - } - } - } - }, - "/gen-config-and-enable": { + "/config": { "put": { "summary": "Generate a ClickHouse configuration file for a server node on a specified", "description": "directory and enable the SMF service.", @@ -73,6 +44,35 @@ } } } + }, + "/distributed-ddl-queue": { + "get": { + "summary": "Contains information about distributed ddl queries (ON CLUSTER clause)", + "description": "that were executed on a cluster.", + "operationId": "distributed_ddl_queue", + "responses": { + "200": { + "description": "successful operation", + "content": { + "application/json": { + "schema": { + "title": "Array_of_DistributedDdlQueue", + "type": "array", + "items": { + "$ref": "#/components/schemas/DistributedDdlQueue" + } + } + } + } + }, + "4XX": { + "$ref": "#/components/responses/Error" + }, + "5XX": { + "$ref": "#/components/responses/Error" + } + } + } } }, "components": {