Add Synonyms API dev tools autocomplete (#162870)

## Summary

Adds Synonyms API dev tools autocomplete.

`generated` APIs have been created running `spec-to-console`. Added a
couple of overrides for helping on request bodies.
This commit is contained in:
Carlos Delgado 2023-08-03 10:28:38 +02:00 committed by GitHub
parent 70bbb99ab7
commit cb31a10822
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 104 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{
"synonym_rule.delete": {
"methods": [
"DELETE"
],
"patterns": [
"_synonyms/{synonyms_set}/{synonym_rule}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-synonym-rule.html"
}
}

View file

@ -0,0 +1,11 @@
{
"synonym_rule.get": {
"methods": [
"GET"
],
"patterns": [
"_synonyms/{synonyms_set}/{synonym_rule}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-synonym-rule.html"
}
}

View file

@ -0,0 +1,11 @@
{
"synonym_rule.put": {
"methods": [
"PUT"
],
"patterns": [
"_synonyms/{synonyms_set}/{synonym_rule}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-synonym-rule.html"
}
}

View file

@ -0,0 +1,11 @@
{
"synonyms.delete": {
"methods": [
"DELETE"
],
"patterns": [
"_synonyms/{synonyms_set}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-synonyms.html"
}
}

View file

@ -0,0 +1,15 @@
{
"synonyms.get": {
"url_params": {
"from": 0,
"size": 0
},
"methods": [
"GET"
],
"patterns": [
"_synonyms/{synonyms_set}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/get-synonyms.html"
}
}

View file

@ -0,0 +1,11 @@
{
"synonyms.put": {
"methods": [
"PUT"
],
"patterns": [
"_synonyms/{synonyms_set}"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-synonyms.html"
}
}

View file

@ -0,0 +1,15 @@
{
"synonyms_sets.get": {
"url_params": {
"from": 0,
"size": 0
},
"methods": [
"GET"
],
"patterns": [
"_synonyms"
],
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/master/list-synonyms.html"
}
}

View file

@ -0,0 +1,7 @@
{
"synonym_rule.put": {
"data_autocomplete_rules": {
"synonyms": ""
}
}
}

View file

@ -0,0 +1,12 @@
{
"synonyms.put": {
"data_autocomplete_rules": {
"synonyms_set": [
{
"id": "",
"synonyms": ""
}
]
}
}
}