Skip to content

Commit 033a4f7

Browse files
committed
Add example for start trial
1 parent f3c9efb commit 033a4f7

File tree

6 files changed

+22
-3
lines changed

6 files changed

+22
-3
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,4 +402,14 @@ actions:
402402
application/json:
403403
examples:
404404
getLicenseResponseExample1:
405-
$ref: "../../specification/license/get_trial_status/GetTrialLicenseStatusResponseExample1.yaml"
405+
$ref: "../../specification/license/get_trial_status/GetTrialLicenseStatusResponseExample1.yaml"
406+
- target: "$.paths['/_license/start_trial']['post']"
407+
description: "Add example for start trial response"
408+
update:
409+
responses:
410+
200:
411+
content:
412+
application/json:
413+
examples:
414+
startTrialLicenseResponseExample1:
415+
$ref: "../../specification/license/post_start_trial/StartTrialLicenseResponseExample1.yaml"

output/schema/schema.json

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

specification/license/post_start_trial/StartTrialLicenseRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { RequestBase } from '@_types/Base'
3030
* @rest_spec_name license.post_start_trial
3131
* @availability stack since=6.1.0 stability=stable
3232
* @cluster_privileges manage
33+
* @doc_id start-trial
3334
*/
3435
export interface Request extends RequestBase {
3536
query_parameters: {
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# summary:
2+
description: A successful response from `POST /_license/start_trial?acknowledge=true`.
3+
# type: response
4+
# response_code: ''
5+
value:
6+
trial_was_started: true
7+
acknowledged: true

0 commit comments

Comments
 (0)