kibana/x-pack/plugins/ml/server/routes
Quynh Nguyen d5a9f0b375
[ML] Fix runtime field validations not supporting special script types (#122469) (#125300)
* Fix validations not handling extra things like params or lang

* Add translations

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit f8d932f70a)
2022-02-10 14:07:37 -07:00
..
apidoc_scripts [ML] Update headers structure for the API docs (#117865) (#117988) 2021-11-09 12:38:36 +00:00
schemas [ML] Fix runtime field validations not supporting special script types (#122469) (#125300) 2022-02-10 14:07:37 -07:00
alerting.ts [ML] Anomaly detection rule lookback interval improvements (#97370) 2021-04-20 10:52:54 +02:00
annotations.ts Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
anomaly_detectors.ts [ES] Upgrade client to v8.0 (#113950) 2021-10-26 14:08:22 +02:00
apidoc.json [ML] Data frame analytics wizard: Only allow data view creation if job will be started (#120042) (#120716) 2021-12-08 00:53:13 -07:00
calendars.ts [ML] Fixing route handler types and schemas (#98636) 2021-05-07 13:08:25 +01:00
data_frame_analytics.ts [ML] Data view loading refactor (#116455) (#117267) 2021-11-09 11:44:55 +00:00
data_visualizer.ts [feature branch] index pattern => data view for user facing content (#109821) 2021-10-20 18:53:39 -05:00
datafeeds.ts [ES] Upgrade client to v8.0 (#113950) 2021-10-26 14:08:22 +02:00
fields_service.ts [ML] Adding additional runtime mapping checks (#94760) 2021-03-24 10:29:46 +00:00
filters.ts [ML] Fixes REST API docs for results service routes (#111298) 2021-09-06 20:31:33 +01:00
indices.ts Elastic License 2.0 (#90099) 2021-02-03 18:12:39 -08:00
job_audit_messages.ts [ML] Fixes REST API docs for results service routes (#111298) 2021-09-06 20:31:33 +01:00
job_service.ts [ES] Upgrade client to v8.0 (#113950) 2021-10-26 14:08:22 +02:00
job_validation.ts [ML] Adding ability to change data view in advanced job wizard (#115191) 2021-10-19 15:51:30 +01:00
modules.ts [ML] Using data views service for loading data views (#113961) 2021-10-13 19:35:51 +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] Fixes REST API docs for results service routes (#111298) 2021-09-06 20:31:33 +01:00
saved_objects.ts [ML] Job sync usability improvements (#112693) 2021-10-06 19:04:22 +01:00
system.ts [ML] Data frame analytics wizard: Only allow data view creation if job will be started (#120042) (#120716) 2021-12-08 00:53:13 -07:00
trained_models.ts [8.0] [ML] Support force stop deployment (#118563) (#119710) 2021-11-25 07:24:05 -07: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.