Skip to content

Commit 0ea8b76

Browse files
authored
rest-api-spec: use url and description from Elasticsarch specification (#133386) (#133783)
* rest-api-spec: use url and description from Elasticsarch specification * Remove doc URLs for internal APIs * Fix more URLs They had a whitespace that the regex did not account for. * Fix more URLs * Fix JSON Schema validation (cherry picked from commit 8697379) # Conflicts: # rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_stream_mappings.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_ai21.json # rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_llama.json
1 parent cd3188d commit 0ea8b76

File tree

564 files changed

+1104
-1104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

564 files changed

+1104
-1104
lines changed

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.delete_desired_balance.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"_internal.delete_desired_balance":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-desired-balance.html",
5-
"description": "This API is a diagnostics API and the output should not be relied upon for building applications."
4+
"url": null,
5+
"description": "This API is a diagnostics API and the output should not be relied upon for building applications"
66
},
77
"stability":"experimental",
88
"visibility":"private",

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.delete_desired_nodes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"_internal.delete_desired_nodes":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/delete-desired-nodes.html",
5-
"description": "Deletes the desired nodes. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
4+
"url": null,
5+
"description": "Deletes the desired nodes"
66
},
77
"stability":"experimental",
88
"visibility":"private",

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.get_desired_balance.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"_internal.get_desired_balance":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-desired-balance.html",
5-
"description": "This API is a diagnostics API and the output should not be relied upon for building applications."
4+
"url": null,
5+
"description": "This API is a diagnostics API and the output should not be relied upon for building applications"
66
},
77
"stability":"experimental",
88
"visibility":"private",

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.get_desired_nodes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"_internal.get_desired_nodes":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/get-desired-nodes.html",
5-
"description": "Gets the latest desired nodes. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
4+
"url": null,
5+
"description": "Gets the latest desired nodes"
66
},
77
"stability":"experimental",
88
"visibility":"private",

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.prevalidate_node_removal.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"_internal.prevalidate_node_removal": {
33
"documentation":{
4-
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/prevalidate-node-removal-api.html",
4+
"url": null,
55
"description":"Prevalidates node removal from the cluster"
66
},
7-
"stability":"stable",
7+
"stability":"experimental",
88
"visibility":"private",
99
"headers":{
1010
"accept": [ "application/json"]

rest-api-spec/src/main/resources/rest-api-spec/api/_internal.update_desired_nodes.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"_internal.update_desired_nodes":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/update-desired-nodes.html",
5-
"description": "Updates the desired nodes. Designed for indirect use by ECE/ESS and ECK. Direct use is not supported."
4+
"url": null,
5+
"description": "Updates the desired nodes"
66
},
77
"stability":"experimental",
88
"visibility":"private",

rest-api-spec/src/main/resources/rest-api-spec/api/async_search.delete.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"async_search.delete":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html",
5-
"description": "Deletes an async search by ID. If the search is still running, the search request will be cancelled. Otherwise, the saved search results are deleted."
4+
"url":"https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit",
5+
"description": "Delete an async search"
66
},
77
"stability":"stable",
88
"visibility":"public",

rest-api-spec/src/main/resources/rest-api-spec/api/async_search.get.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"async_search.get":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html",
5-
"description": "Retrieves the results of a previously submitted async search request given its ID."
4+
"url":"https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit",
5+
"description": "Get async search results"
66
},
77
"stability":"stable",
88
"visibility":"public",

rest-api-spec/src/main/resources/rest-api-spec/api/async_search.status.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"async_search.status":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html",
5-
"description": "Retrieves the status of a previously submitted async search request given its ID."
4+
"url":"https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit",
5+
"description": "Get the async search status"
66
},
77
"stability":"stable",
88
"visibility":"public",

rest-api-spec/src/main/resources/rest-api-spec/api/async_search.submit.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"async_search.submit":{
33
"documentation":{
4-
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/async-search.html",
5-
"description": "Executes a search request asynchronously."
4+
"url":"https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-async-search-submit",
5+
"description": "Run an async search"
66
},
77
"stability":"stable",
88
"visibility":"public",

0 commit comments

Comments
 (0)