From 2490b50ddd31a209774dc5e997ed1bf45e2bbdf0 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 27 May 2013 23:03:30 +0200 Subject: [PATCH] Added the API definition for `_percolate` --- rest-api-spec/api/percolate.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/rest-api-spec/api/percolate.json b/rest-api-spec/api/percolate.json index cd8f8f90074..e1c54356201 100644 --- a/rest-api-spec/api/percolate.json +++ b/rest-api-spec/api/percolate.json @@ -7,17 +7,25 @@ "paths": ["/{index}/{type}/_percolate"], "parts": { "index": { + "type" : "string", + "required" : true, + "description" : "The name of the index with a registered percolator query" }, "type": { + "type" : "string", + "required" : true, + "description" : "The document type" } }, "params": { "prefer_local": { - }, - "type": { + "type" : "boolean", + "description" : "Specify whether a local or random replica should be used (default: true)" } } }, - "body": null + "body": { + "description" : "The document (`doc`) to percolate against registered queries; optionally also a `query` to limit the percolation to specific registered queries" + } } }