From dc67d86af77045ad3c90c735d696ffc27a40e817 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Sat, 8 Jun 2013 15:34:13 +0200 Subject: [PATCH] put_* apis have required body --- rest-api-spec/api/indices.put_alias.json | 3 ++- rest-api-spec/api/indices.put_mapping.json | 3 ++- rest-api-spec/api/indices.put_settings.json | 3 ++- rest-api-spec/api/indices.put_template.json | 3 ++- rest-api-spec/api/indices.put_warmer.json | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/rest-api-spec/api/indices.put_alias.json b/rest-api-spec/api/indices.put_alias.json index 16e59bbb072..7441860b1ab 100644 --- a/rest-api-spec/api/indices.put_alias.json +++ b/rest-api-spec/api/indices.put_alias.json @@ -25,7 +25,8 @@ } }, "body": { - "description" : "The settings for the alias, such as `routing` or `filter`" + "description" : "The settings for the alias, such as `routing` or `filter`", + "required" : true } } } diff --git a/rest-api-spec/api/indices.put_mapping.json b/rest-api-spec/api/indices.put_mapping.json index 3a246f60155..d3696f89998 100644 --- a/rest-api-spec/api/indices.put_mapping.json +++ b/rest-api-spec/api/indices.put_mapping.json @@ -29,7 +29,8 @@ } }, "body": { - "description" : "The mapping definition" + "description" : "The mapping definition", + "required" : true } } } diff --git a/rest-api-spec/api/indices.put_settings.json b/rest-api-spec/api/indices.put_settings.json index 676de472f21..5ddf6087e03 100644 --- a/rest-api-spec/api/indices.put_settings.json +++ b/rest-api-spec/api/indices.put_settings.json @@ -15,7 +15,8 @@ } }, "body": { - "description" : "The index settings to be updated" + "description" : "The index settings to be updated", + "required" : true } } } diff --git a/rest-api-spec/api/indices.put_template.json b/rest-api-spec/api/indices.put_template.json index 743843232fb..7d2345aa33e 100644 --- a/rest-api-spec/api/indices.put_template.json +++ b/rest-api-spec/api/indices.put_template.json @@ -24,7 +24,8 @@ } }, "body": { - "description" : "The template definition" + "description" : "The template definition", + "required" : true } } } diff --git a/rest-api-spec/api/indices.put_warmer.json b/rest-api-spec/api/indices.put_warmer.json index 99339693197..ba006cc60f6 100644 --- a/rest-api-spec/api/indices.put_warmer.json +++ b/rest-api-spec/api/indices.put_warmer.json @@ -23,7 +23,8 @@ } }, "body": { - "description" : "The search request definition for the warmer (query, filters, facets, sorting, etc)" + "description" : "The search request definition for the warmer (query, filters, facets, sorting, etc)", + "required" : true } } }