Skip to content

Commit a98d6a4

Browse files
lcawlszabosteve
andauthored
[8.x] Add examples to licensing APIs (#3420) (#3424)
Co-authored-by: István Zoltán Szabó <[email protected]> (cherry picked from commit e153632)
1 parent bf41e8c commit a98d6a4

14 files changed

+1851
-1776
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 57 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,63 @@ actions:
392392
examples:
393393
indicesLegacyPutTemplateRequestExample1:
394394
$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"
395452
## Examples for search applications
396453
- target: "$.paths['/_application/search_application/{name}/_render_query']['post']"
397454
description: "Add examples for render search application query operation"
@@ -402,10 +459,5 @@ actions:
402459
examples:
403460
renderSearchApplicationQueryRequestExample1:
404461
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryRequestExample1.yaml"
405-
responses:
406-
200:
407-
content:
408-
application/json:
409-
examples:
410462
renderSearchApplicationQueryResponseExample1:
411463
$ref: "../../specification/search_application/render_query/SearchApplicationsRenderQueryResponseExample1.yaml"

docs/overlays/elasticsearch-shared-overlays.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1351,3 +1351,14 @@ actions:
13511351
examples:
13521352
indicesRolloverResponseExample1:
13531353
$ref: "../../specification/indices/rollover/indicesRolloverResponseExample1.yaml"
1354+
## Examples for licensing
1355+
- target: "$.paths['/_license']['get']"
1356+
description: "Add example for get license response"
1357+
update:
1358+
responses:
1359+
200:
1360+
content:
1361+
application/json:
1362+
examples:
1363+
getLicenseResponseExample1:
1364+
$ref: "../../specification/license/get/GetLicenseResponseExample1.yaml"

0 commit comments

Comments
 (0)