From 9e35090c92012ced4743bf6a3efc071a756c5d66 Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 10:43:24 +0530 Subject: [PATCH] Swagger file:pipeline for TM Change-Id: Ib60726512e7f3a8704a323a92ed485175b1f43c1 Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) 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" -- 2.16.6