Added the API definition for creating the index

This commit is contained in:
Karel Minarik 2013-05-27 15:22:28 +02:00
parent 7455aaf0fd
commit 2848c084b7

View File

@ -1,22 +1,30 @@
{ {
"indices.create": { "indices.create": {
"documentation": "http://elasticsearch.org/guide/reference/mapping/", "documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-create-index/",
"methods": ["PUT", "POST"], "methods": ["PUT", "POST"],
"url": { "url": {
"path": "/{index}", "path": "/{index}",
"paths": ["/{index}"], "paths": ["/{index}"],
"parts": { "parts": {
"index": { "index": {
"type" : "string",
"required" : true,
"description" : "The name of the index"
} }
}, },
"params": { "params": {
"index": { "index": {
"type" : "string",
"description" : "The name of the index"
}, },
"timeout": { "timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
} }
} }
}, },
"body": { "body": {
"description" : "The configuration for the index (`settings` and `mappings`)"
} }
} }
} }