2020-06-08 15:47:51 +02:00
|
|
|
## Developer examples
|
|
|
|
|
|
|
|
Owner: Kibana application architecture team
|
|
|
|
|
|
|
|
The developer examples app is a landing page where developers go to search for working, tested examples of various developer
|
|
|
|
services. Add your a link to your example using the developerExamples `register` function offered on the `setup` contract:
|
|
|
|
|
|
|
|
```ts
|
|
|
|
setup(core, { developerExamples }) {
|
|
|
|
developerExamples.register({
|
|
|
|
appId: 'myFooExampleApp',
|
|
|
|
title: 'Foo services',
|
|
|
|
description: `Foo services let you do bar and zed.`,
|
|
|
|
links: [
|
|
|
|
{
|
|
|
|
label: 'README',
|
2021-10-29 18:53:08 +02:00
|
|
|
href: 'https://github.com/elastic/kibana/tree/main/src/plugins/foo/README.md',
|
2020-06-08 15:47:51 +02:00
|
|
|
iconType: 'logoGithub',
|
|
|
|
target: '_blank',
|
|
|
|
size: 's',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
image: img,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
Run Kibana with developer examples via:
|
|
|
|
|
|
|
|
```
|
|
|
|
yarn start --run-examples
|
|
|
|
```
|
|
|
|
|
|
|
|
Then navigate to "Developer examples":
|
|
|
|
|
|
|
|
<img src="./navigation.png" height="400px" />
|