From: Swaraj Kumar Date: Fri, 18 Oct 2024 06:12:40 +0000 (+0530) Subject: Swagger file:model info with id for mme X-Git-Tag: 4.0.0~26 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=e62b9f2c2a8dd2fd935c48c1b38b49c4d5c69c0a;p=aiml-fw%2Fawmf%2Fmodelmgmtservice.git Swagger file:model info with id for mme Change-Id: Ifa44323e99327890e568bdde60c751562b413e07 Signed-off-by: Swaraj Kumar --- diff --git a/API_docs/mme.yaml b/API_docs/mme.yaml index 2c34ebf..dcc766f 100644 --- a/API_docs/mme.yaml +++ b/API_docs/mme.yaml @@ -69,3 +69,68 @@ paths: description: Invalid query parameters '500': description: Internal Server Error + /modelInfo/{id}: + get: + tags: + - Model Management + summary: Get model info by ID + operationId: getModelInfoById + parameters: + - name: id + in: path + required: true + schema: + type: string + responses: + '200': + description: Model information + content: + application/json: + schema: + $ref: '#/components/schemas/ModelInfo' + '404': + description: Model not found + '500': + description: Internal Server Error + + put: + tags: + - Model Management + summary: Update model info by ID + operationId: updateModel + parameters: + - name: id + in: path + required: true + schema: + type: string + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/ModelInfo' + responses: + '200': + description: Model updated successfully + '400': + description: Invalid request body + '500': + description: Internal Server Error + + delete: + tags: + - Model Management + summary: Delete a model by ID + operationId: deleteModel + parameters: + - name: id + in: path + required: true + schema: + type: string + responses: + '200': + description: Model deleted successfully + '500': + description: Internal Server Error