From 000dc52cd0a3a063310c7532be10460174d4b027 Mon Sep 17 00:00:00 2001 From: olcbean Date: Fri, 10 Nov 2017 21:22:42 +0100 Subject: [PATCH 1/2] removing outdated parameters from index and create and adding missing `op_type` to `_create` --- .../main/resources/rest-api-spec/api/create.json | 14 ++++++-------- .../main/resources/rest-api-spec/api/index.json | 8 -------- 2 files changed, 6 insertions(+), 16 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/create.json b/rest-api-spec/src/main/resources/rest-api-spec/api/create.json index 31c9d51f6732b..2ee84e84fc6f5 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/create.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/create.json @@ -27,6 +27,12 @@ "type" : "string", "description" : "Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" }, + "op_type": { + "type" : "enum", + "options" : ["index", "create"], + "default" : "index", + "description" : "Explicit operation type" + }, "parent": { "type" : "string", "description" : "ID of the parent document" @@ -44,14 +50,6 @@ "type" : "time", "description" : "Explicit operation timeout" }, - "timestamp": { - "type" : "time", - "description" : "Explicit timestamp for the document" - }, - "ttl": { - "type" : "time", - "description" : "Expiration time for the document" - }, "version" : { "type" : "number", "description" : "Explicit version number for concurrency control" diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/index.json b/rest-api-spec/src/main/resources/rest-api-spec/api/index.json index 814a53c114147..a58598b3bb396 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/index.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/index.json @@ -49,14 +49,6 @@ "type" : "time", "description" : "Explicit operation timeout" }, - "timestamp": { - "type" : "time", - "description" : "Explicit timestamp for the document" - }, - "ttl": { - "type" : "time", - "description" : "Expiration time for the document" - }, "version" : { "type" : "number", "description" : "Explicit version number for concurrency control" From e6a59a724d9618c3514f50446df6de1978194526 Mon Sep 17 00:00:00 2001 From: olcbean Date: Mon, 13 Nov 2017 19:24:46 +0100 Subject: [PATCH 2/2] removing `op_type` for `_create` --- .../src/main/resources/rest-api-spec/api/create.json | 6 ------ 1 file changed, 6 deletions(-) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/create.json b/rest-api-spec/src/main/resources/rest-api-spec/api/create.json index 2ee84e84fc6f5..9b4e09a174aaf 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/create.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/create.json @@ -27,12 +27,6 @@ "type" : "string", "description" : "Sets the number of shard copies that must be active before proceeding with the index operation. Defaults to 1, meaning the primary shard only. Set to `all` for all shard copies, otherwise set to any non-negative value less than or equal to the total number of copies for the shard (number of replicas + 1)" }, - "op_type": { - "type" : "enum", - "options" : ["index", "create"], - "default" : "index", - "description" : "Explicit operation type" - }, "parent": { "type" : "string", "description" : "ID of the parent document"