From 756af81b0019061bbf498459eed50b06a0c3f4cc Mon Sep 17 00:00:00 2001 From: Areek Zillur Date: Thu, 9 Jun 2016 12:53:24 -0400 Subject: [PATCH] change rollover rest-api placeholder name --- .../main/resources/rest-api-spec/api/indices.rollover.json | 6 +++--- .../rest-api-spec/test/indices.rollover/10_basic.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json index ec66d48116a..7ba7d9cd29c 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.rollover.json @@ -3,10 +3,10 @@ "documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/indices-rollover-index.html", "methods": ["POST"], "url": { - "path": "/{index}/_rollover", - "paths": ["/{index}/_rollover"], + "path": "/{alias}/_rollover", + "paths": ["/{alias}/_rollover"], "parts": { - "index": { + "alias": { "type" : "string", "required" : true, "description" : "The name of the alias to rollover" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.rollover/10_basic.yaml b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.rollover/10_basic.yaml index c60907fb416..647907614fa 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/indices.rollover/10_basic.yaml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/indices.rollover/10_basic.yaml @@ -31,7 +31,7 @@ # perform alias rollover - do: indices.rollover: - index: "logs_search" + alias: "logs_search" body: conditions: max_docs: 1