From 74f2d3e5cb0d3343630ada202ab6d09c466fcc94 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 11 Apr 2025 14:09:51 +0400 Subject: [PATCH] Add back inference.inference API (#126601) --- .../api/inference.inference.json | 45 +++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 rest-api-spec/src/main/resources/rest-api-spec/api/inference.inference.json diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/inference.inference.json b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.inference.json new file mode 100644 index 0000000000000..bf1282dfaaef7 --- /dev/null +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/inference.inference.json @@ -0,0 +1,45 @@ +{ + "inference.inference": { + "documentation": { + "url": "https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html", + "description": "Perform inference" + }, + "stability": "stable", + "visibility": "public", + "headers": { + "accept": ["application/json"], + "content_type": ["application/json"] + }, + "url": { + "paths": [ + { + "path": "/_inference/{inference_id}", + "methods": ["POST"], + "parts": { + "inference_id": { + "type": "string", + "description": "The inference Id" + } + } + }, + { + "path": "/_inference/{task_type}/{inference_id}", + "methods": ["POST"], + "parts": { + "task_type": { + "type": "string", + "description": "The task type" + }, + "inference_id": { + "type": "string", + "description": "The inference Id" + } + } + } + ] + }, + "body": { + "description": "The inference payload" + } + } +}