OpenSearch/x-pack/plugin
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
..
ccr Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
core [ML][Data Frame] adjusting change detection workflow (#45511) (#45580) 2019-08-14 17:26:24 -05:00
data-frame Mute data frame tests on 7.x 2019-08-15 17:07:53 +03:00
deprecation Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
frozen-indices Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
graph Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
ilm Properly set origin for SLM history store client (#45515) 2019-08-13 18:23:20 -06:00
logstash Remove description from xpack feature sets (#43065) 2019-06-11 09:22:58 -07:00
mapper-flattened Add support for 'flattened object' fields. (#43762) 2019-07-01 12:08:50 +03:00
ml [7.x] Implement ml/data_frame/analytics/_estimate_memory_usage API endpoint (#45188) (#45510) 2019-08-14 08:26:03 +02:00
monitoring Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
rollup [ML][Data Frame] adjusting change detection workflow (#45511) (#45580) 2019-08-14 17:26:24 -05:00
security [ML] Muting 5 SSLErrorMessageTests tests on Windows (#45602) 2019-08-15 11:05:00 +01:00
spatial [SPATIAL] Backport new ShapeFieldMapper and ShapeQueryBuilder to 7x (#45363) 2019-08-14 16:35:10 -05:00
sql Remove deprecated use of "interval" method, in favor of "fixedInterval". (#45501) 2019-08-16 15:03:43 +03:00
src/test Update the schema for the REST API specification (#42346) 2019-08-16 14:40:00 +02:00
vectors Adds usage stats for vectors (#45023) 2019-07-31 12:32:41 -04:00
voting-only-node Close nodes properly in Coordinator tests (#44967) 2019-07-30 11:47:36 +01:00
watcher Fix watcher HttpClient URL creation (#45207) 2019-08-13 12:15:54 +02:00
build.gradle Convert testclusters to use distro download plugin (#44253) (#44362) 2019-07-15 17:53:05 -07:00