Swagger file:retraining for TM 52/13652/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:25:52 +0000 (10:55 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:25:52 +0000 (10:55 +0530)
Change-Id: I028f051bb2b91c0c8c195ac577cd5610a68ce57e
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/training-manager.yaml

index 13cdca8..178306b 100644 (file)
@@ -601,3 +601,56 @@ paths:
             properties:
               Exception:
                 type: "string"
+
+  /trainingjobs/retraining:
+    post:
+      tags:
+        - Training Job
+      summary: "Retrain training jobs"
+      description: "Retrains the training jobs specified in the request. The overall status of the training job should be 'failed' or 'finished', and deletion should not be in progress."
+      parameters:
+        - name: "body"
+          in: "body"
+          required: true
+          schema:
+            type: "object"
+            properties:
+              trainingjobs_list:
+                type: "array"
+                items:
+                  type: "object"
+                  properties:
+                    trainingjob_name:
+                      type: "string"
+                      description: "Name of the training job"
+                    notification_url:
+                      type: "string"
+                      description: "Optional URL for notifications"
+                    feature_filter:
+                      type: "string"
+                      description: "Optional feature filter"
+      responses:
+        200:
+          description: "Retraining results"
+          schema:
+            type: "object"
+            properties:
+              success_count:
+                type: "integer"
+              failure_count:
+                type: "integer"
+        400:
+          description: "Invalid request or missing data"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+        500:
+          description: "Internal server error"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+