From 6b26609801fd83d877b44509532109849120bc59 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 27 May 2013 15:42:23 +0200 Subject: [PATCH] Added the API definition for checking the document type existence --- rest-api-spec/api/indices.exists.types.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/rest-api-spec/api/indices.exists.types.json b/rest-api-spec/api/indices.exists.types.json index 678d3555ea3..7b650af2233 100644 --- a/rest-api-spec/api/indices.exists.types.json +++ b/rest-api-spec/api/indices.exists.types.json @@ -1,20 +1,28 @@ { "indices.exists.types": { - "documentation": "", + "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-types-exists/", "methods": ["HEAD"], "url": { "path": "/{index}/{type}", "paths": ["/{index}/{type}"], "parts": { "index": { + "type" : "list", + "required" : true, + "description" : "A comma-separated list of index names; use `_all` to check the types across all indices" }, "type": { + "type" : "list", + "required" : true, + "description" : "A comma-separated list of document types to check" } }, "params": { "ignore_indices": { - }, - "type": { + "type" : "enum", + "options" : ["none","missing"], + "default" : "none", + "description" : "When performed on multiple indices, allows to ignore `missing` ones" } } },