From e324f86d77a7ae10828e227503f327760e82fbf9 Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 10:46:19 +0530 Subject: [PATCH] Swagger file:training job latest for TM Change-Id: Ibd49c33a125fd74c119d90d217223b46a7379e4a Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index c0c8be6..ba2166c 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -313,3 +313,34 @@ paths: properties: Exception: type: "string" + + /trainingjobs/latest: + get: + tags: + - Training Job + summary: "Get overall status and latest version of all training jobs" + description: "Fetches the overall status and the latest version of all existing training jobs." + responses: + 200: + description: "Successful response with training job status and version details" + schema: + type: "object" + properties: + trainingjobs: + type: "array" + items: + type: "object" + properties: + trainingjob_name: + type: "string" + version: + type: "integer" + overall_status: + type: "string" + 500: + description: "Internal server error" + schema: + type: "object" + properties: + Exception: + type: "string" -- 2.16.6