forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Put experimental HTTP API routes behind feature flag
To enable HTTP API routes add to kibana.yml ``` feature_flags.overrides: dashboard.enableExperimentalHttpApi: true ```
- Loading branch information
Showing
4 changed files
with
82 additions
and
11 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
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,33 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the "Elastic License | ||
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side | ||
* Public License v 1"; you may not use this file except in compliance with, at | ||
* your election, the "Elastic License 2.0", the "GNU Affero General Public | ||
* License v3.0 only", or the "Server Side Public License, v 1". | ||
*/ | ||
|
||
import type { FeatureFlagDefinitions } from '@kbn/core-feature-flags-server'; | ||
import { PUBLIC_API_FEATURE_FLAG } from './api/constants'; | ||
|
||
export const featureFlags: FeatureFlagDefinitions = [ | ||
{ | ||
key: PUBLIC_API_FEATURE_FLAG, | ||
name: 'Dashboard HTTP API', | ||
description: 'Enable or disable the Dashboard HTTP API endpoints', | ||
tags: ['dashboard'], | ||
variationType: 'boolean', | ||
variations: [ | ||
{ | ||
name: 'Enabled', | ||
description: 'Enables the Dashboard HTTP API endpoints', | ||
value: true, | ||
}, | ||
{ | ||
name: 'Disabled', | ||
description: 'Disables the Dashboard HTTP API endpoints', | ||
value: false, | ||
}, | ||
], | ||
}, | ||
]; |
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