Skip to content

Commit d71800a

Browse files
committed
Add example subfolders
1 parent 74f8ad3 commit d71800a

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ actions:
410410
content:
411411
application/json:
412412
examples:
413-
esqlAsyncQueryRequestExample1:
414-
$ref: "../../specification/esql/async_query/EsqlAsyncQueryRequestExample1.yaml"
413+
esqlAsyncQueryRequestExample1:
414+
$ref: "../../specification/esql/async_query/examples/request/AsyncQueryRequestExample1.yaml"
415415
## Examples for licensing
416416
- target: "$.paths['/_license/basic_status']['get']"
417417
description: "Add example for get basic status response"

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1172,7 +1172,7 @@ actions:
11721172
application/json:
11731173
examples:
11741174
esqlQueryRequestExample1:
1175-
$ref: "../../specification/esql/query/EsqlQueryApiRequestExample1.json"
1175+
$ref: "../../specification/esql/query/examples/request/QueryRequestExample1.yaml"
11761176
- target: "$.components['requestBodies']['graph.explore']"
11771177
description: "Add example for graph explore request"
11781178
update:

specification/esql/query/EsqlQueryApiRequestExample1.json

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# summary: 'Returns results for an ES|QL query.'
2+
# method_request: POST /_query
3+
# description: ''
4+
# type: request
5+
value: |-
6+
{
7+
"query": """
8+
FROM library
9+
| EVAL year = DATE_TRUNC(1 YEARS, release_date)
10+
| STATS MAX(page_count) BY year
11+
| SORT year
12+
| LIMIT 5
13+
"""
14+
}

0 commit comments

Comments
 (0)