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