mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 02:14:54 +00:00
Added the API definition for creating the index
This commit is contained in:
parent
7455aaf0fd
commit
2848c084b7
@ -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`)"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user