OpenSearch/plugins
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
..
analysis-icu Upgrade to Lucene 8.2.0 release (#44859) (#44892) 2019-07-26 08:14:59 +02:00
analysis-kuromoji Upgrade to Lucene 8.2.0 release (#44859) (#44892) 2019-07-26 08:14:59 +02:00
analysis-nori Upgrade to Lucene 8.2.0 release (#44859) (#44892) 2019-07-26 08:14:59 +02:00
analysis-phonetic Upgrade to Lucene 8.2.0 release (#44859) (#44892) 2019-07-26 08:14:59 +02:00
analysis-smartcn Upgrade to Lucene 8.2.0 release (#44859) (#44892) 2019-07-26 08:14:59 +02:00
analysis-stempel Upgrade to Lucene 8.2.0 release (#44859) (#44892) 2019-07-26 08:14:59 +02:00
analysis-ukrainian Upgrade to Lucene 8.2.0 release (#44859) (#44892) 2019-07-26 08:14:59 +02:00
discovery-azure-classic Allow parsing the value of java.version sysprop (#44017) 2019-07-22 20:14:56 +03:00
discovery-ec2 [Backport] Enable caching of rest tests which use integ-test distribution (#44181) 2019-07-10 15:42:28 -07:00
discovery-gce [Backport] Enable caching of rest tests which use integ-test distribution (#44181) 2019-07-10 15:42:28 -07:00
examples Update the schema for the REST API specification (#42346) 2019-08-16 14:40:00 +02:00
ingest-attachment [Backport] Improve build configuration time (#42674) 2019-05-30 10:29:42 -07:00
mapper-annotated-text Simplify handling of keyword field normalizers (#42002) 2019-05-10 14:38:46 +01:00
mapper-murmur3 Small refactorings to analysis components (#40745) 2019-04-03 14:22:16 +02:00
mapper-size Remove -Xlint exclusions in all plugins. (#40721) 2019-04-04 08:30:34 +02:00
repository-azure Reomve debugging loging statements from Azure tests 2019-07-22 16:55:55 +09:00
repository-gcs Remove blobExists Method from BlobContainer (#44472) (#44475) 2019-07-17 11:56:02 +02:00
repository-hdfs skip repository-hdfs integTest in case of fips jvm (#44319) 2019-07-18 21:10:53 +10:00
repository-s3 Remove Settings from BaseRestRequest Constructor (#45418) (#45429) 2019-08-12 05:14:45 +02:00
store-smb Remove usage of FileSwitchDirectory (#42937) 2019-06-12 19:35:27 +02:00
transport-nio Upgrade to Netty 4.1.38 (#45132) (#45364) 2019-08-09 03:38:14 +02:00
build.gradle Testclsuters: convert plugins qa projects (#41496) 2019-04-26 08:57:52 -07:00