kibana/x-pack/plugins/transform/server
Dima Arnautov 58fc711626
[Transform] Replace legacy elasticsearch client (#84932)
* [Transform] replace legacy elasticsearch client

* [Transform] delete custom legacy client definition, update transforms_audit_messages.ts

* [Transform] fix start and stop transform endpoints

* [Transform] fix privileges and stats endpoints

* [Transform] fix forbidden

* [Transform] revert continue statement, add a comment

* [Transform] update privileges.ts using security namespace

* [Transform] fix error wrappers

* [Transform] add functional test for preview error validation

* [Transform] extract error message from the root cause

* [Transform] remove error translation
2020-12-09 12:55:54 +01:00
..
routes [Transform] Replace legacy elasticsearch client (#84932) 2020-12-09 12:55:54 +01:00
services
index.ts
plugin.ts [Transform] Replace legacy elasticsearch client (#84932) 2020-12-09 12:55:54 +01:00
README.md
shared_imports.ts
types.ts

Transform Kibana API routes

This folder contains Transform API routes in Kibana.

Each route handler requires apiDoc annotations in order to generate documentation. The apidoc-markdown package is also required in order to generate the markdown.

There are custom parser and worker (x-pack/plugins/transform/server/routes/apidoc_scripts) to process api schemas for each documentation entry. It's written with typescript so make sure all the scripts in the folder are compiled before executing apidoc command.

Make sure you have run yarn kbn bootstrap to get all requires dev dependencies. Then execute the following command from the transform plugin folder:

yarn run apiDocs

It compiles all the required scripts and generates the documentation both in HTML and Markdown formats.

It will create a new directory routes_doc (next to the routes folder) which contains the documentation in HTML format as well as Transform_API.md file.