From: subhash kumar singh Date: Thu, 26 Jun 2025 12:19:01 +0000 (+0000) Subject: Fix OpenAPI for MME X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F14617%2F1;p=aiml-fw%2Fawmf%2Fmodelmgmtservice.git Fix OpenAPI for MME Fixed the incorrect endpoints for MME APIs. Change-Id: I63e86ca9926eff2d2f17608fd2f60b1c4ba96fca Signed-off-by: subhash kumar singh --- diff --git a/API_docs/mme.yaml b/API_docs/mme.yaml index 13463f7..7b6eb24 100644 --- a/API_docs/mme.yaml +++ b/API_docs/mme.yaml @@ -5,7 +5,7 @@ info: version: 1.1.0 servers: - - url: http://localhost:8080 + - url: http://11.0.0.4:32006 description: Local development server tags: @@ -13,7 +13,7 @@ tags: description: Endpoints for managing models paths: - /registerModel: + /ai-ml-model-registration/v1/model-registrations: post: tags: - Model Management @@ -24,20 +24,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModelInfo' + $ref: '#/components/schemas/ModelRelatedInformation' responses: '200': description: Model registered successfully and returned object content: application/json: schema: - $ref: '#/components/schemas/ModelInfo' + $ref: '#/components/schemas/ModelRelatedInformation' '400': description: Invalid request, bad input data '500': description: Internal Server Error - /getModelInfo: + /ai-ml-model-discovery/v1/models: get: tags: - Model Management @@ -64,12 +64,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModelInfo' + $ref: '#/components/schemas/ModelRelatedInformation' '400': description: Invalid query parameters '500': description: Internal Server Error - /modelInfo/{id}: + /ai-ml-model-registration/v1/model-registrations/{modelRegistrationId}: get: tags: - Model Management @@ -87,7 +87,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModelInfo' + $ref: '#/components/schemas/ModelRelatedInformation' '404': description: Model not found '500': @@ -109,7 +109,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModelInfo' + $ref: '#/components/schemas/ModelRelatedInformation' responses: '200': description: Model updated successfully @@ -135,7 +135,7 @@ paths: '500': description: Internal Server Error - /uploadModel/{modelName}/{modelVersion}/{artifactVersion}: + /ai-ml-model-registration/v1/uploadModel/{modelName}/{modelVersion}/{artifactVersion}: post: tags: - Model Management @@ -184,7 +184,7 @@ paths: '500': description: Internal Server Error - /downloadModel/{modelName}/{modelVersion}/{artifactVersion}/model.zip: + /ai-ml-model-registration/v1/downloadModel/{modelName}/{modelVersion}/{artifactVersion}/model.zip: get: tags: - Model Management @@ -236,23 +236,30 @@ components: type: string example: "v1.0" - ModelSpec: + ModelInformation: type: object properties: metadata: $ref: '#/components/schemas/Metadata' + inputDataType: + type: string + description: 'Input data type for the model' + outputDataType: + type: string + description: 'Output data type for the model' + - ModelInfo: + ModelRelatedInformation: type: object properties: id: type: string example: "123e4567-e89b-12d3-a456-426614174000" - model-id: + modelId: $ref: '#/components/schemas/ModelID' description: type: string example: "This is an example model description." - meta-info: - $ref: '#/components/schemas/ModelSpec' + modelInformation: + $ref: '#/components/schemas/ModelInformation'