Skip to content

Commit

Permalink
[ML] fix apidoc methods, passing es_search endpoint payload
Browse files Browse the repository at this point in the history
  • Loading branch information
darnautov committed Feb 18, 2020
1 parent e60e183 commit 608f48d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions x-pack/legacy/plugins/ml/server/routes/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function systemRoutes({
/**
* @apiGroup SystemRoutes
*
* @api {post} /api/ml/ml_capabilities Check ML capabilities
* @api {get} /api/ml/ml_capabilities Check ML capabilities
* @apiName MlCapabilities
* @apiDescription Checks ML capabilities
*/
Expand Down Expand Up @@ -144,7 +144,7 @@ export function systemRoutes({
/**
* @apiGroup SystemRoutes
*
* @api {post} /api/ml/ml_node_count Get the amount of ML nodes
* @api {get} /api/ml/ml_node_count Get the amount of ML nodes
* @apiName MlNodeCount
* @apiDescription Returns the amount of ML nodes.
*/
Expand Down Expand Up @@ -195,7 +195,7 @@ export function systemRoutes({
/**
* @apiGroup SystemRoutes
*
* @api {post} /api/ml/info Get ML info
* @api {get} /api/ml/info Get ML info
* @apiName MlInfo
* @apiDescription Returns defaults and limits used by machine learning.
*/
Expand Down Expand Up @@ -233,7 +233,7 @@ export function systemRoutes({
licensePreRoutingFactory(xpackMainPlugin, async (context, request, response) => {
try {
return response.ok({
body: await context.ml!.mlClient.callAsCurrentUser('search'),
body: await context.ml!.mlClient.callAsCurrentUser('search', request.body),
});
} catch (error) {
return response.customError(wrapError(error));
Expand Down

0 comments on commit 608f48d

Please sign in to comment.