kibana/x-pack/plugins/ml/server/routes
2020-08-26 20:08:39 +01:00
..
apidoc_scripts apply prettier styles 2020-05-22 09:08:58 +02:00
schemas [ML] Add option for per-partition categorization to categorization job wizard (#75061) 2020-08-19 13:03:00 -05:00
annotations.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
anomaly_detectors.ts [ML] Add option for per-partition categorization to categorization job wizard (#75061) 2020-08-19 13:03:00 -05:00
apidoc.json [ML] Add option for per-partition categorization to categorization job wizard (#75061) 2020-08-19 13:03:00 -05:00
calendars.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
data_frame_analytics.ts [ML] Adding authorization header to DFA job update request (#75899) 2020-08-26 20:08:39 +01:00
data_visualizer.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
datafeeds.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
fields_service.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
file_data_visualizer.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
filters.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
indices.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
inference.ts [ML] Inference models management (#74978) 2020-08-19 16:22:26 +02:00
job_audit_messages.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
job_service.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
job_validation.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
modules.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
notification_settings.ts [ML] Refactor in preparation for new es client (#74552) 2020-08-11 08:53:16 +01:00
README.md [ML] Extract apiDoc params from the schema definitions (#62933) 2020-04-15 18:40:34 +02:00
results_service.ts [ML] Add option for per-partition categorization to categorization job wizard (#75061) 2020-08-19 13:03:00 -05:00
system.ts [ML] Fixing file import button on basic license (#75458) 2020-08-19 19:13:12 +01:00

ML Kibana API routes

This folder contains ML 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/ml/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 ml 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 ML_API.md file.