From 2848c084b742d92eb855a4769f26de210c564131 Mon Sep 17 00:00:00 2001 From: Karel Minarik Date: Mon, 27 May 2013 15:22:28 +0200 Subject: [PATCH] Added the API definition for creating the index --- rest-api-spec/api/indices.create.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/rest-api-spec/api/indices.create.json b/rest-api-spec/api/indices.create.json index ab65664c274..976ea66aceb 100644 --- a/rest-api-spec/api/indices.create.json +++ b/rest-api-spec/api/indices.create.json @@ -1,22 +1,30 @@ { "indices.create": { - "documentation": "http://elasticsearch.org/guide/reference/mapping/", + "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index/", "methods": ["PUT", "POST"], "url": { "path": "/{index}", "paths": ["/{index}"], "parts": { "index": { + "type" : "string", + "required" : true, + "description" : "The name of the index" } }, "params": { "index": { + "type" : "string", + "description" : "The name of the index" }, "timeout": { + "type" : "time", + "description" : "Explicit operation timeout" } } }, "body": { + "description" : "The configuration for the index (`settings` and `mappings`)" } } }