From 9902da67d40d2adbc1862664ce6de1fa79368325 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Sun, 26 May 2013 12:24:58 +0200 Subject: [PATCH] Added the API definition for `bulk` --- rest-api-spec/api/bulk.json | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/api/bulk.json b/rest-api-spec/api/bulk.json index eca720bb230..fb590bf8ad9 100644 --- a/rest-api-spec/api/bulk.json +++ b/rest-api-spec/api/bulk.json @@ -7,23 +7,42 @@ "paths": ["/_bulk", "/{index}/_bulk", "/{index}/{type}/_bulk"], "parts": { "index": { + "type" : "string", + "description" : "Default index for items which don't provide one" }, "type": { + "type" : "string", + "description" : "Default document type for items which don't provide one" } }, "params": { "consistency": { + "type" : "enum", + "options" : ["one", "quorum", "all"], + "description" : "Explicit write consistency setting for the operation" }, "index": { + "type" : "string", + "description" : "Default index for items which don't provide one" }, "refresh": { + "type" : "boolean", + "description" : "Refresh the index after performing the operation" }, "replication": { + "type" : "enum", + "options" : ["sync","async"], + "default" : "sync", + "description" : "Explicitely set the replication type" }, "type": { + "type" : "string", + "description" : "Default document type for items which don't provide one" } } }, - "body": null + "body": { + "description" : "The operation definition and data (action-data pairs), separated by newlines" + } } }