-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add get-settings spec for /settings endpoint
- Loading branch information
John Schulz
committed
Jul 22, 2021
1 parent
7d98448
commit da25a60
Showing
5 changed files
with
120 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
x-pack/plugins/fleet/common/openapi/components/schemas/fleet_settings_response.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
title: Fleet Setup response | ||
type: object | ||
properties: | ||
response: | ||
type: object | ||
properties: | ||
id: | ||
type: string | ||
has_seen_add_data_notice: | ||
type: boolean | ||
has_seen_fleet_migration_notice: | ||
type: boolean | ||
fleet_server_hosts: | ||
type: array | ||
items: | ||
type: string | ||
required: | ||
- fleet_server_hosts | ||
- id | ||
required: | ||
- response |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,8 @@ paths: | |
# plugin-wide endpoint(s) | ||
/setup: | ||
$ref: paths/setup.yaml | ||
/settings: | ||
$ref: paths/settings.yaml | ||
# EPM / integrations endpoints | ||
/epm/categories: | ||
$ref: paths/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
get: | ||
summary: Settings | ||
tags: [] | ||
responses: | ||
'200': | ||
description: OK | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../components/schemas/fleet_settings_response.yaml | ||
operationId: get-settings |