From 027c9c2d690855e0d8a0db3177a6820c88b22ab1 Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 10:37:15 +0530 Subject: [PATCH] Swagger file:training step states job for TM Change-Id: I2ddee852f5d507ebf716839366d26fbadd3ee630 Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 47 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index a577bca..19defdc 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -113,4 +113,49 @@ paths: type: "object" properties: Exception: - type: "string" \ No newline at end of file + type: "string" + + /trainingjobs/{trainingjob_name}/{version}/steps_state: + get: + tags: + - Training Job + summary: "Get steps state information for a training job" + description: "Returns the state of each step in the training job process." + parameters: + - name: "trainingjob_name" + in: "path" + required: true + type: "string" + description: "Name of the training job" + - name: "version" + in: "path" + required: true + type: "integer" + description: "Version of the training job" + responses: + 200: + description: "Successful response with steps state information" + schema: + type: "object" + 400: + description: "Invalid training job name or version" + schema: + type: "object" + properties: + Exception: + type: "string" + 404: + description: "Training job not found" + schema: + type: "object" + properties: + Exception: + type: "string" + 500: + description: "Internal server error" + schema: + type: "object" + properties: + Exception: + type: "string" + -- 2.16.6