From 882fbb72fd031c969cdfb09af6f2883cde23ee7b Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Tue, 21 Jan 2014 16:31:41 +0100 Subject: [PATCH] [SPEC] Specify bulk format for body in bulk, msearch, mpercolate --- rest-api-spec/api/bulk.json | 3 ++- rest-api-spec/api/mpercolate.json | 3 ++- rest-api-spec/api/msearch.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/rest-api-spec/api/bulk.json b/rest-api-spec/api/bulk.json index cf3980771ec..621088dd69b 100644 --- a/rest-api-spec/api/bulk.json +++ b/rest-api-spec/api/bulk.json @@ -51,7 +51,8 @@ }, "body": { "description" : "The operation definition and data (action-data pairs), separated by newlines", - "required" : true + "required" : true, + "serialize" : "bulk" } } } diff --git a/rest-api-spec/api/mpercolate.json b/rest-api-spec/api/mpercolate.json index 6755abb4351..7091a794f43 100644 --- a/rest-api-spec/api/mpercolate.json +++ b/rest-api-spec/api/mpercolate.json @@ -34,7 +34,8 @@ }, "body": { "description": "The percolate request definitions (header & body pair), separated by newlines", - "required": true + "required": true, + "serialize" : "bulk" } } } diff --git a/rest-api-spec/api/msearch.json b/rest-api-spec/api/msearch.json index 6ff25485ce4..09ebf8bce07 100644 --- a/rest-api-spec/api/msearch.json +++ b/rest-api-spec/api/msearch.json @@ -25,7 +25,8 @@ }, "body": { "description": "The request definitions (metadata-search request definition pairs), separated by newlines", - "required" : true + "required" : true, + "serialize" : "bulk" } } }