Skip to content

Commit 51c2bda

Browse files
authored
Update rest-api-spec
1 parent 902222a commit 51c2bda

File tree

5 files changed

+139
-1
lines changed

5 files changed

+139
-1
lines changed

output/schema/schema.json

Lines changed: 59 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_json_spec/cluster.info.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"parts": {
1818
"target": {
1919
"type": "list",
20-
"options": ["_all", "http", "ingest", "thread_pool"],
20+
"options": ["_all", "http", "ingest", "thread_pool", "script"],
2121
"description": "Limit the information returned to the specified target."
2222
}
2323
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"query_ruleset.put": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/put-query-ruleset.html",
5+
"description": "Creates or updates a query ruleset."
6+
},
7+
"stability": "experimental",
8+
"visibility": "feature_flag",
9+
"feature_flag": "es.query_rules_feature_flag_enabled",
10+
"headers": {
11+
"accept": ["application/json"],
12+
"content_type": ["application/json"]
13+
},
14+
"url": {
15+
"paths": [
16+
{
17+
"path": "/_query_rules/{ruleset_id}",
18+
"methods": ["PUT"],
19+
"parts": {
20+
"ruleset_id": {
21+
"type": "string",
22+
"description": "The unique identifier of the ruleset to be created or updated."
23+
}
24+
}
25+
}
26+
]
27+
},
28+
"body": {
29+
"description": "The query ruleset configuration, including `rules`",
30+
"required": true
31+
}
32+
}
33+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"synonyms_sets.get": {
3+
"documentation": {
4+
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/list-synonyms.html",
5+
"description": "Retrieves a summary of all defined synonym sets"
6+
},
7+
"stability": "experimental",
8+
"visibility": "feature_flag",
9+
"feature_flag": "es.synonyms_feature_flag_enabled",
10+
"headers": {
11+
"accept": ["application/json"]
12+
},
13+
"url": {
14+
"paths": [
15+
{
16+
"path": "/_synonyms",
17+
"methods": ["GET"]
18+
}
19+
]
20+
},
21+
"params": {
22+
"from": {
23+
"type": "int",
24+
"description": "Starting offset",
25+
"default": 0
26+
},
27+
"size": {
28+
"type": "int",
29+
"description": "specifies a max number of results to get",
30+
"default": 10
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)