From 1edfc98dde122e13a488e948a747b4c178592515 Mon Sep 17 00:00:00 2001 From: Tokesh Date: Mon, 8 Jul 2024 19:42:51 +0500 Subject: [PATCH] fix response body Signed-off-by: Tokesh --- spec/namespaces/sql.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/spec/namespaces/sql.yaml b/spec/namespaces/sql.yaml index 559f67e5d..6f16a0b87 100644 --- a/spec/namespaces/sql.yaml +++ b/spec/namespaces/sql.yaml @@ -55,7 +55,7 @@ paths: /_plugins/_sql/stats: get: operationId: sql.get_stats.0 - x-operation-group: sql.stats + x-operation-group: sql.get_stats x-version-added: '1.0' description: By a stats endpoint, you are able to collect metrics for the plugin within the interval. externalDocs: @@ -202,6 +202,12 @@ components: schema: $ref: '../schemas/sql._common.yaml#/components/schemas/SqlCloseResponse' required: true + sql.stats@200: + content: + application/json: + schema: + $ref: '../schemas/sql._common.yaml#/components/schemas/SqlStatsResponse' + required: true sql.get_stats@200: content: application/json: