kibana/docs/development/core/server/kibana-plugin-server.requesthandlercontext.md
Mikhail Shustov b6591eb0bd
Provide uiSettings service in NP (#48413)
* provide ui settins client via context

* update mocks

* update types and expose setDefaults to plugins

* move ui settings routes to NP

* add typings fro test kbn server

* move integration test & improve typings

* hide client private methods, update tests

* add unit tests for get_upgradable_config

* inline writeErrors into createOrUpgradeConfig to simplify testing

* regen docs

* add functional tests for ui_settings service

* unify test suites

* add types for sipertest in core_plugin tests

* tsify core_plugins tests

* add test for empty saved config

* update renovate

* rename get/setDefaults to reguster

* regen docs

* regen docs

* Update src/core/MIGRATION.md

Co-Authored-By: Josh Dover <me@joshdover.com>
2019-10-28 16:06:12 -04:00

1.5 KiB

Home > kibana-plugin-server > RequestHandlerContext

RequestHandlerContext interface

Plugin specific context passed to a route handler.

Provides the following clients: - savedObjects.client - Saved Objects client which uses the credentials of the incoming request - elasticsearch.dataClient - Elasticsearch data client which uses the credentials of the incoming request - elasticsearch.adminClient - Elasticsearch admin client which uses the credentials of the incoming request

Signature:

export interface RequestHandlerContext 

Properties

Property Type Description
core {
savedObjects: {
client: SavedObjectsClientContract;
};
elasticsearch: {
dataClient: IScopedClusterClient;
adminClient: IScopedClusterClient;
};
uiSettings: {
client: IUiSettingsClient;
};
}