mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
To provide additional language options for scripted fields, Kibana needs to know what languages are available for inline scripting in Elasticsearch. This new Kibana API grabs up to date information from Elasticsearch and provides it in an easy to digest format for the UI. The response body from the API is a simple JSON array with a list of languages that are enabled for inline scripting. The API also filters out languages that don't make sense in scripted fields, like 'mustache'. An example request might look like this: `GET /api/kibana/scripts/languages` 200 OK `['expression', 'painless']`
14 lines
347 B
JavaScript
14 lines
347 B
JavaScript
define({
|
|
suites: [
|
|
'test/unit/api/ingest/index',
|
|
'test/unit/api/search/index',
|
|
'test/unit/api/scripts/index'
|
|
],
|
|
excludeInstrumentation: /(fixtures|node_modules)\//,
|
|
loaderOptions: {
|
|
paths: {
|
|
'bluebird': './node_modules/bluebird/js/browser/bluebird.js',
|
|
'moment': './node_modules/moment/moment.js'
|
|
}
|
|
}
|
|
});
|