Elasticsearch 7 support 🚀 (#760)

* API generation

* Updated typings

* Updated code generation

* Updated test

* Updated ci configuration

* Fixed test
This commit is contained in:
Tomas Della Vedova
2019-01-29 12:10:20 +01:00
committed by GitHub
parent bd2755a302
commit 7acd2e3b07
259 changed files with 4368 additions and 1990 deletions

View File

@ -97,11 +97,14 @@ function buildIndicesDeleteTemplate (opts) {
ignore = [ignore]
}
var path = ''
path = '/' + '_template' + '/' + encodeURIComponent(params['name'])
// build request object
const parts = ['_template', params['name']]
const request = {
method,
path: '/' + parts.filter(Boolean).map(encodeURIComponent).join('/'),
path,
body: '',
querystring
}