From 2d0eb4c41bd6e40d88d6a723a1061b75cced33ce Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 10:35:57 +0530 Subject: [PATCH] Swagger file:training job for TM Change-Id: I6915fbd3a990b61ed6ae0f4b146502b98c47ba57 Signed-off-by: Swaraj Kumar --- API_docs/training-manager.yaml | 95 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 94 insertions(+), 1 deletion(-) diff --git a/API_docs/training-manager.yaml b/API_docs/training-manager.yaml index 3258c5c..a577bca 100644 --- a/API_docs/training-manager.yaml +++ b/API_docs/training-manager.yaml @@ -20,4 +20,97 @@ tags: - name: Pipeline description: Pipeline related operations - name: Training Job - description: Training Job related operations \ No newline at end of file + description: Training Job related operations + +paths: + /trainingjobs/{trainingjob_name}/{version}: + get: + tags: + - Training Job + summary: "Fetch training job details by name and version" + description: "Returns detailed information about a specific training job identified by its name and version." + 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 training job details" + schema: + type: "object" + properties: + trainingjob: + type: "object" + properties: + trainingjob_name: + type: "string" + description: + type: "string" + feature_list: + type: "string" + pipeline_name: + type: "string" + experiment_name: + type: "string" + arguments: + type: "object" + query_filter: + type: "string" + creation_time: + type: "string" + format: "date-time" + run_id: + type: "string" + steps_state: + type: "object" + accuracy: + type: "string" + enable_versioning: + type: "boolean" + updation_time: + type: "string" + format: "date-time" + version: + type: "integer" + pipeline_version: + type: "string" + datalake_source: + type: "string" + model_url: + type: "string" + notification_url: + type: "string" + is_mme: + type: "boolean" + model_name: + type: "string" + model_info: + type: "string" + 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" \ No newline at end of file -- 2.16.6