OpenSearch/plugins/examples
Luca Cavanna c31cddf27e
Update the schema for the REST API specification (#42346)
* Update the REST API specification

This patch updates the REST API spefication in JSON files to better encode deprecated entities,
to improve specification of URL paths, and to open up the schema for future extensions.

Notably, it changes the `paths` from a list of strings to a list of objects, where each
particular object encodes all the information for this particular path: the `parts` and the `methods`.

Among the benefits of this approach is eg. encoding the difference between using the `PUT` and `POST`
methods in the Index API, to either use a specific document ID, or let Elasticsearch generate one.

Also `documentation` becomes an object that supports an `url` and also a `description` which is a
new field.

* Adapt YAML runner to new REST API specification format

The logic for choosing the path to use when running tests has been
simplified, as a consequence of the path parts being listed under each
path in the spec. The special case for create and index has been removed.

Also the parsing code has been hardened so that errors are thrown earlier
when the structure of the spec differs from what expected, and their
error messages should be more helpful.
2019-08-16 14:40:00 +02:00
..
custom-settings Testclusters: support for security and convert example plugins (#41864) 2019-05-08 14:04:00 +03:00
custom-suggester Fix suggestions for empty indices (#42927) 2019-06-12 15:42:23 +02: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 Update the schema for the REST API specification (#42346) 2019-08-16 14:40:00 +02:00
script-expert-scoring Testclusters: support for security and convert example plugins (#41864) 2019-05-08 14:04:00 +03:00
security-authorization-engine Refactor cluster privileges and cluster permission (#45265) (#45442) 2019-08-13 09:06:18 +10:00
build.gradle [Backport] Remove dependency substitutions 7.x (#42866) 2019-06-04 13:50:23 -07:00