From ec4c480a87c16f6c88a9af68d1cb6044870f2afa Mon Sep 17 00:00:00 2001 From: Russ Cam Date: Mon, 25 May 2020 10:23:27 +1000 Subject: [PATCH] Use deprecated object to deprecate synced flush API Relates: #50835 This commit updates the synced flush REST API spec to deprecate the whole API. --- .../rest-api-spec/api/indices.flush_synced.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json index a7b4541c9623a..134ba93395b40 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.flush_synced.json @@ -12,7 +12,11 @@ "methods":[ "POST", "GET" - ] + ], + "deprecated":{ + "version":"7.6.0", + "description":"Synced flush is deprecated and will be removed in 8.0. Use flush instead." + } }, { "path":"/{index}/_flush/synced", @@ -25,6 +29,10 @@ "type":"list", "description":"A comma-separated list of index names; use `_all` or empty string for all indices" } + }, + "deprecated":{ + "version":"7.6.0", + "description":"Synced flush is deprecated and will be removed in 8.0. Use flush instead." } } ]