Swagger file:training job latest for TM 46/13646/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:16:19 +0000 (10:46 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:16:19 +0000 (10:46 +0530)
Change-Id: Ibd49c33a125fd74c119d90d217223b46a7379e4a
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/training-manager.yaml

index c0c8be6..ba2166c 100644 (file)
@@ -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"