Skip to content

Commit ef5c8c0

Browse files
authored
Merge branch 'main' into search-application
2 parents 6a6327f + e153632 commit ef5c8c0

19 files changed

+390
-14
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,4 +391,74 @@ actions:
391391
application/json:
392392
examples:
393393
indicesLegacyPutTemplateRequestExample1:
394-
$ref: "../../specification/indices/put_template/indicesPutTemplateRequestExample1.yaml"
394+
$ref: "../../specification/indices/put_template/indicesPutTemplateRequestExample1.yaml"
395+
## Examples for licensing
396+
- target: "$.paths['/_license/basic_status']['get']"
397+
description: "Add example for get basic status response"
398+
update:
399+
responses:
400+
200:
401+
content:
402+
application/json:
403+
examples:
404+
getBasicStatusResponseExample1:
405+
$ref: "../../specification/license/get_basic_status/GetBasicLicenseStatusResponseExample1.yaml"
406+
- target: "$.paths['/_license/trial_status']['get']"
407+
description: "Add example for get trial status response"
408+
update:
409+
responses:
410+
200:
411+
content:
412+
application/json:
413+
examples:
414+
getLicenseResponseExample1:
415+
$ref: "../../specification/license/get_trial_status/GetTrialLicenseStatusResponseExample1.yaml"
416+
- target: "$.paths['/_license/start_basic']['post']"
417+
description: "Add example for start basic response"
418+
update:
419+
responses:
420+
200:
421+
content:
422+
application/json:
423+
examples:
424+
startBasicLicenseResponseExample1:
425+
$ref: "../../specification/license/post_start_basic/StartBasicLicenseResponseExample1.yaml"
426+
- target: "$.paths['/_license/start_trial']['post']"
427+
description: "Add example for start trial response"
428+
update:
429+
responses:
430+
200:
431+
content:
432+
application/json:
433+
examples:
434+
startTrialLicenseResponseExample1:
435+
$ref: "../../specification/license/post_start_trial/StartTrialLicenseResponseExample1.yaml"
436+
- target: "$.components['requestBodies']['license.post']"
437+
description: "Add examples for update license request"
438+
update:
439+
content:
440+
application/json:
441+
examples:
442+
updateLicenseRequestExample1:
443+
$ref: "../../specification/license/post/PostLicenseRequestExample1.yaml"
444+
- target: "$.components['responses']['license.post#200']"
445+
description: "Add examples for update license response"
446+
update:
447+
content:
448+
application/json:
449+
examples:
450+
clusterHealthResponseExample1:
451+
$ref: "../../specification/license/post/PostLicenseResponseExample1.yaml"
452+
## Examples for search applications
453+
- target: "$.paths['/_application/search_application/{name}/_render_query']['post']"
454+
description: "Add examples for render search application query operation"
455+
update:
456+
requestBody:
457+
content:
458+
application/json:
459+
examples:
460+
renderSearchApplicationQueryRequestExample1:
461+
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryRequestExample1.yaml"
462+
renderSearchApplicationQueryResponseExample1:
463+
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryResponseExample1.yaml"
464+

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,6 +1360,17 @@ actions:
13601360
examples:
13611361
getBehavioralAnalyticsCollectionsResponseExample1:
13621362
$ref: "../../specification/search_application/get_behavioral_analytics/BehavioralAnalyticsGetResponseExample1.yaml"
1363+
## Examples for licensing
1364+
- target: "$.paths['/_license']['get']"
1365+
description: "Add example for get license response"
1366+
update:
1367+
responses:
1368+
200:
1369+
content:
1370+
application/json:
1371+
examples:
1372+
getLicenseResponseExample1:
1373+
$ref: "../../specification/license/get/GetLicenseResponseExample1.yaml"
13631374
## Examples for search applications
13641375
- target: "$.paths['/_application/search_application']['get']"
13651376
description: "Add examples for get search applications operation"
@@ -1397,4 +1408,4 @@ actions:
13971408
application/json:
13981409
examples:
13991410
searchApplicationSearchRequestExample1:
1400-
$ref: "../../specification/search_application/search/SearchApplicationsSearchRequestExample1.yaml"
1411+
$ref: "../../specification/search_application/search/SearchApplicationsSearchRequestExample1.yaml"

output/openapi/elasticsearch-openapi.json

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

output/schema/schema.json

Lines changed: 83 additions & 6 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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -623,12 +623,6 @@
623623
],
624624
"response": []
625625
},
626-
"search_application.render_query": {
627-
"request": [
628-
"Missing request & response"
629-
],
630-
"response": []
631-
},
632626
"search_mvt": {
633627
"request": [
634628
"Request: query parameter 'grid_agg' does not exist in the json spec",

output/typescript/types.ts

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

specification/_doc_ids/table.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,7 @@ search-aggregations-metrics-valuecount-aggregation,https://www.elastic.co/guide/
541541
search-aggregations-metrics-weight-avg-aggregation,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-aggregations-metrics-weight-avg-aggregation.html
542542
search-aggregations-bucket-variablewidthhistogram-aggregation,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-aggregations-bucket-variablewidthhistogram-aggregation.html
543543
search-analyzer,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-analyzer.html
544+
search-render-query,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-application-render-query.html
544545
search-count,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-count.html
545546
search-explain,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-explain.html
546547
search-field-caps,https://www.elastic.co/guide/en/elasticsearch/reference/{branch}/search-field-caps.html
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# summary: licensing/get-license.asciidoc:61
2+
description: A successful response from `GET /_license`.
3+
# type: response
4+
# response_code: ''
5+
value:
6+
"{\n \"license\" : {\n \"status\" : \"active\",\n \"uid\" : \"cbff45e7-c553-41f7-ae4f-9205eabd80xx\"\
7+
,\n \"type\" : \"trial\",\n \"issue_date\" : \"2018-10-20T22:05:12.332Z\"\
8+
,\n \"issue_date_in_millis\" : 1540073112332,\n \"expiry_date\" : \"2018-11-19T22:05:12.332Z\"\
9+
,\n \"expiry_date_in_millis\" : 1542665112332,\n \"max_nodes\" : 1000,\n \
10+
\ \"max_resource_units\" : null,\n \"issued_to\" : \"test\",\n \"issuer\"\
11+
\ : \"elasticsearch\",\n \"start_date_in_millis\" : -1\n }\n}"
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# summary: licensing/get-basic-status.asciidoc:42
2+
description: A successful response from `GET /_license/basic_status`.
3+
# type: response
4+
# response_code: 200
5+
value:
6+
eligible_to_start_basic: true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# summary: licensing/get-trial-status.asciidoc:47
2+
description: A successful response from `GET /_license/trial_status`.
3+
# type: response
4+
# response_code: 200
5+
value:
6+
eligible_to_start_trial: true

0 commit comments

Comments
 (0)