Swagger file:pipeline versions for TM 48/13648/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:19:27 +0000 (10:49 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 05:19:27 +0000 (10:49 +0530)
Change-Id: I703e2327809d7028b43352145a4f68fad02b6150
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/training-manager.yaml

index f7496a0..d3254b0 100644 (file)
@@ -382,3 +382,34 @@ paths:
             properties:
               Exception:
                 type: "string"
+
+  /pipelines/{pipeline_name}/versions:
+    get:
+      tags:
+        - Pipeline
+      summary: "Get versions of a pipeline"
+      description: "Fetches all the versions of a given pipeline."
+      parameters:
+        - name: "pipeline_name"
+          in: "path"
+          required: true
+          type: "string"
+          description: "Name of the pipeline"
+      responses:
+        200:
+          description: "Successful response with pipeline versions"
+          schema:
+            type: "object"
+            properties:
+              versions_list:
+                type: "array"
+                items:
+                  type: "string"
+        500:
+          description: "Internal server error"
+          schema:
+            type: "object"
+            properties:
+              Exception:
+                type: "string"
+