OpenSearch/plugins/examples
Stuart Tettemer 426c7a5e8f
Scripting: add available languages & contexts API (#49652) (#49815)
Adds `GET /_script_language` to support Kibana dynamic scripting
language selection.

Response contains whether `inline` and/or `stored` scripts are
enabled as determined by the `script.allowed_types` settings.

For each scripting language registered, such as `painless`,
`expression`, `mustache` or custom, available contexts for the language
are included as determined by the `script.allowed_contexts` setting.

Response format:
```
{
  "types_allowed": [
    "inline",
    "stored"
  ],
  "language_contexts": [
    {
      "language": "expression",
      "contexts": [
        "aggregation_selector",
        "aggs"
        ...
      ]
    },
    {
      "language": "painless",
      "contexts": [
        "aggregation_selector",
        "aggs",
        "aggs_combine",
        ...
      ]
    }
...
  ]
}
```

Fixes: #49463 

**Backport**
2019-12-04 16:18:22 -07:00
..
custom-settings Testclusters: support for security and convert example plugins (#41864) 2019-05-08 14:04:00 +03:00
custom-suggester Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
painless-whitelist Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00
rescore Fix parameter value for calling data.advanceExact (#44205) 2019-07-18 10:55:10 +02:00
rest-handler Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00
script-expert-scoring Scripting: add available languages & contexts API (#49652) (#49815) 2019-12-04 16:18:22 -07:00
security-authorization-engine Refactor cluster privileges and cluster permission (#45265) (#45442) 2019-08-13 09:06:18 +10:00
build.gradle Apply 2-space indent to all gradle scripts (#49071) 2019-11-14 11:01:23 +00:00