From: Swaraj Kumar Date: Fri, 18 Oct 2024 05:17:53 +0000 (+0530) Subject: Swagger file:pipeline upload for TM X-Git-Tag: 3.0.0~75 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=478a682541c8474cfb9128b5ee7b99143b098c70;p=aiml-fw%2Fawmf%2Ftm.git Swagger file:pipeline upload for TM Change-Id: I460926a6ec07765c7efe2e021013c6eb14eed185 Signed-off-by: Swaraj Kumar --- diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index ba2166c..f7496a0 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -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"