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

index 5f6c5bc..687c0fd 100644 (file)
@@ -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"