mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 07:25:23 +00:00
3a558972b2
Added base TransportAction class for master read operations that execute locally or not depending on the request class (local flag). Added support for local flag where missing, in a backwards compatible manner: - IndicesExistsRequest - GetAliasesRequest (get alias api, aliases exist api) - TypesExistsRequest - GetIndexTemplatesRequest (get template, template exists) - GetSettingsRequest - GetRepositoriesRequest - PendingClusterTasks Added parsing of the local flag where missing in Rest*Action. Updated SPEC adding local flag param where missing and added REST tests that contain use of the local flag where it was just added. Closes #3345
29 lines
830 B
JSON
29 lines
830 B
JSON
{
|
|
"indices.get_template": {
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html",
|
|
"methods": ["GET"],
|
|
"url": {
|
|
"path": "/_template/{name}",
|
|
"paths": ["/_template", "/_template/{name}"],
|
|
"parts": {
|
|
"name": {
|
|
"type" : "string",
|
|
"required" : false,
|
|
"description" : "The name of the template"
|
|
}
|
|
},
|
|
"params": {
|
|
"flat_settings": {
|
|
"type": "boolean",
|
|
"description": "Return settings in flat format (default: false)"
|
|
},
|
|
"local": {
|
|
"type": "boolean",
|
|
"description": "Return local information, do not retrieve the state from master node (default: false)"
|
|
}
|
|
}
|
|
},
|
|
"body": null
|
|
}
|
|
}
|