From 0300392b03928b29d3c6b64b5af879ea6d512b81 Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 10:40:46 +0530 Subject: [PATCH] Swagger file:training states job for TM Change-Id: Ieb39e3546a2af791b32027cec417e9997ded1e60 Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index 5f6c5bc..687c0fd 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -194,4 +194,41 @@ paths: type: "object" properties: Exception: - type: "string" \ No newline at end of file + type: "string" + + /trainingjobs/{trainingjob_name}/training: + post: + tags: + - Training Job + summary: "Start training job" + description: "Starts the training job by invoking the data extraction module and other training steps." + parameters: + - name: "trainingjob_name" + in: "path" + required: true + type: "string" + description: "Name of the training job" + responses: + 200: + description: "Training job started successfully" + schema: + type: "object" + properties: + trainingjob_name: + type: "string" + result: + type: "string" + 400: + description: "Invalid training job name" + schema: + type: "object" + properties: + Exception: + type: "string" + 500: + description: "Internal server error" + schema: + type: "object" + properties: + Exception: + type: "string" -- 2.16.6