Swagger file:pipeline upload for TM 47/13647/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:17:53 +0000 (10:47 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:17:53 +0000 (10:47 +0530)
Change-Id: I460926a6ec07765c7efe2e021013c6eb14eed185
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/training-manager.yaml

index ba2166c..f7496a0 100644 (file)
@@ -313,7 +313,7 @@ paths:
             properties:
               Exception:
                 type: "string"
-                
+
   /trainingjobs/latest:
     get:
       tags:
@@ -344,3 +344,41 @@ paths:
             properties:
               Exception:
                 type: "string"
+
+  /pipelines/{pipe_name}/upload:
+    post:
+      tags:
+        - Pipeline
+      summary: "Upload pipeline"
+      description: "Uploads a pipeline file to the server."
+      parameters:
+        - name: "pipe_name"
+          in: "path"
+          required: true
+          type: "string"
+          description: "Name of the pipeline"
+        - name: "file"
+          in: "formData"
+          required: true
+          type: "file"
+          description: "Pipeline file to upload"
+        - name: "description"
+          in: "formData"
+          required: false
+          type: "string"
+          description: "Description of the pipeline"
+      responses:
+        200:
+          description: "Pipeline uploaded successfully"
+          schema:
+            type: "object"
+            properties:
+              result:
+                type: "string"
+        500:
+          description: "Internal server error"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"