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
1 changed files with 9 additions and 1 deletions

View File

@ -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`)"
}
}
}