From 586fa69fede615ba2e120f680b222c4c53aa4c63 Mon Sep 17 00:00:00 2001 From: Swaraj Kumar Date: Fri, 18 Oct 2024 11:45:25 +0530 Subject: [PATCH] Swagger file:components for mme Change-Id: I46fcc486cc28853e757430096c6fb4b20001852a Signed-off-by: Swaraj Kumar --- API_docs/mme.yaml | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/API_docs/mme.yaml b/API_docs/mme.yaml index cb5e070..4360549 100644 --- a/API_docs/mme.yaml +++ b/API_docs/mme.yaml @@ -195,4 +195,44 @@ paths: type: string format: binary '500': - description: Internal Server Error \ No newline at end of file + description: Internal Server Error + +components: + schemas: + Metadata: + type: object + properties: + author: + type: string + example: "John Doe" + + ModelID: + type: object + properties: + modelName: + type: string + example: "example-model" + modelVersion: + type: string + example: "v1.0" + + ModelSpec: + type: object + properties: + metadata: + $ref: '#/components/schemas/Metadata' + + ModelInfo: + type: object + properties: + id: + type: string + example: "123e4567-e89b-12d3-a456-426614174000" + model-id: + $ref: '#/components/schemas/ModelID' + description: + type: string + example: "This is an example model description." + meta-info: + $ref: '#/components/schemas/ModelSpec' + -- 2.16.6