From b8c43c426e8a30514e193eeec901cb60f7a1ca47 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Sun, 2 Feb 2020 09:58:31 +0100 Subject: [PATCH] Fix the SQL API documentation in REST specification (#51534) This patch fixes the SQL REST API documentation to conform to the current schema. (cherry picked from commit c8b6a849852699883086a6ada42279f2f68d7e07) --- .../src/test/resources/rest-api-spec/api/sql.clear_cursor.json | 3 ++- .../plugin/src/test/resources/rest-api-spec/api/sql.query.json | 3 ++- .../src/test/resources/rest-api-spec/api/sql.translate.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.clear_cursor.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.clear_cursor.json index 392b24b218741..7cef02fb88741 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.clear_cursor.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.clear_cursor.json @@ -1,7 +1,8 @@ { "sql.clear_cursor":{ "documentation":{ - "url":"Clear SQL cursor" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-pagination.html", + "description":"Clears the SQL cursor" }, "stability":"stable", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.query.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.query.json index 0fe518b520546..1c32b7b5b2852 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.query.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.query.json @@ -1,7 +1,8 @@ { "sql.query":{ "documentation":{ - "url":"Execute SQL" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-rest-overview.html", + "description":"Executes an SQL request" }, "stability":"stable", "url":{ diff --git a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.translate.json b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.translate.json index 30920a3e4a326..37a66bd25c98a 100644 --- a/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.translate.json +++ b/x-pack/plugin/src/test/resources/rest-api-spec/api/sql.translate.json @@ -1,7 +1,8 @@ { "sql.translate":{ "documentation":{ - "url":"Translate SQL into Elasticsearch queries" + "url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/sql-translate.html", + "description":"Translates SQL into Elasticsearch queries" }, "stability":"stable", "url":{