Swagger file:pipeline for TM 45/13645/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:13:24 +0000 (10:43 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:13:24 +0000 (10:43 +0530)
Change-Id: Ib60726512e7f3a8704a323a92ed485175b1f43c1
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/training-manager.yaml

index b00f0fe..c0c8be6 100644 (file)
@@ -271,3 +271,45 @@ paths:
             properties:
               Exception:
                 type: "string" 
+
+  /trainingjob/pipelineNotification:
+    post:
+      tags:
+        - Training Job
+      summary: "Handle pipeline notification"
+      description: "Handles the notification from kf_adapter and updates the model download URL in the database."
+      parameters:
+        - name: "body"
+          in: "body"
+          required: true
+          schema:
+            type: "object"
+            properties:
+              trainingjob_name:
+                type: "string"
+                description: "Name of the training job"
+              run_status:
+                type: "string"
+                description: "Status of the run"
+      responses:
+        200:
+          description: "Pipeline notification handled successfully"
+          schema:
+            type: "object"
+            properties:
+              result:
+                type: "string"
+        400:
+          description: "Invalid training job name or request"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+        500:
+          description: "Internal server error"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"