Swagger file:components for mme 63/13663/1
authorSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 06:15:25 +0000 (11:45 +0530)
committerSwaraj Kumar <swaraj.kumar@samsung.com>
Fri, 18 Oct 2024 06:15:25 +0000 (11:45 +0530)
Change-Id: I46fcc486cc28853e757430096c6fb4b20001852a
Signed-off-by: Swaraj Kumar <swaraj.kumar@samsung.com>
API_docs/mme.yaml

index cb5e070..4360549 100644 (file)
@@ -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'
+