kibana/x-pack/plugins/ml/server/routes
Melissa Alvarez d0d271c07d
[ML] DF Analytics creation: ensure monitor cluster privilege not required to create job (#71934)
* add checkIndexExists endpoint wrapping field_caps

* replace indexNames with checkIndexExists check

* update translations

* show error toast on index check fail

* add new route to api doc
2020-07-16 13:22:25 -04:00
..
apidoc_scripts apply prettier styles 2020-05-22 09:08:58 +02:00
schemas [ML] Anomaly Detection: Annotations enhancements (#70198) 2020-07-14 12:36:01 -05:00
annotations.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
anomaly_detectors.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
apidoc.json [ML] DF Analytics creation: ensure monitor cluster privilege not required to create job (#71934) 2020-07-16 13:22:25 -04:00
calendars.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
data_frame_analytics.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
data_visualizer.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
datafeeds.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
fields_service.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
file_data_visualizer.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
filters.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
indices.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +01:00
job_audit_messages.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
job_service.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
job_validation.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
modules.ts [ML] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
notification_settings.ts [ML] Adding endpoint capability checks (#64662) 2020-04-29 18:25:48 +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] Changing all calls to ML endpoints to use internal user (#70487) 2020-07-14 15:48:24 +01:00
system.ts [ML] DF Analytics creation: ensure monitor cluster privilege not required to create job (#71934) 2020-07-16 13:22:25 -04: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.