From 337df9ee4177f5aeff225c29329dcbf01b8763d5 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 27 May 2013 22:29:08 +0200 Subject: [PATCH] Added the API definition for registering a warmer --- rest-api-spec/api/indices.warmer.put.json | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/rest-api-spec/api/indices.warmer.put.json b/rest-api-spec/api/indices.warmer.put.json index acc998aa97e..7dd94926093 100644 --- a/rest-api-spec/api/indices.warmer.put.json +++ b/rest-api-spec/api/indices.warmer.put.json @@ -1,27 +1,29 @@ { "indices.warmer.put": { - "documentation": "", + "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-warmers/", "methods": ["PUT"], "url": { "path": "/{index}/_warmer/{name}", "paths": ["/{index}/_warmer/{name}", "/{index}/{type}/_warmer/{name}"], "parts": { "index": { + "type" : "list", + "description" : "A comma-separated list of index names to register the warmer for; use `_all` or empty string to perform the operation on all indices" }, "name": { + "type" : "string", + "description" : "The name of the warmer (supports wildcards)" }, "type": { + "type" : "list", + "description" : "A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types" } }, "params": { - "index": { - }, - "name": { - }, - "type": { - } } }, - "body": null + "body": { + "description" : "The search request definition (query, filters, facets, sorting, etc)" + } } }