From 2791a1cd075b2e48e151b5c04fe55c0021077b0e Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 10:49:27 +0530 Subject: [PATCH] Swagger file:pipeline versions for TM Change-Id: I703e2327809d7028b43352145a4f68fad02b6150 Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index f7496a0..d3254b0 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -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" + -- 2.16.6