Add return types to OpenAPI spec GET methods 37/4037/1
authorLott, Christopher (cl778h) <cl778h@att.com>
Tue, 9 Jun 2020 12:05:53 +0000 (08:05 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Tue, 9 Jun 2020 12:05:53 +0000 (08:05 -0400)
Define response type of Object so GET methods can return values.
TODO: define schema for charts and values.

Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
Change-Id: Idb080fdff72a5ac09f54515b4cec833c988486d3

xapp_onboarder/xapp_onboarder/xapp-onboarder-api.yaml

index 2774976..28b48f9 100644 (file)
@@ -37,7 +37,10 @@ paths:
       responses:
         200:
           description: Get helm chart list OK
-          content: {}
+          content:
+            application/json:
+              schema:
+                type: object
         500:
           description: Get helm chart list failed
           content:
@@ -60,7 +63,10 @@ paths:
       responses:
         200:
           description: Get helm chart OK
-          content: {}
+          content:
+            application/json:
+              schema:
+                type: object
         500:
           description: Get helm chart failed
           content:
@@ -88,7 +94,10 @@ paths:
       responses:
         200:
           description: Get helm chart package OK
-          content: {}
+          content:
+            application/json:
+              schema:
+                type: object
         500:
           description: Get helm chart package failed
           content:
@@ -117,7 +126,10 @@ paths:
       responses:
         200:
           description: Get helm chart values.yaml OK
-          content: {}
+          content:
+            application/json:
+              schema:
+                type: object
         500:
           description: Get helm chart values.yaml failed
           content:
@@ -276,7 +288,13 @@ components:
   responses:
     MaskError:
       description: When any error occurs on mask
-      content: {}
+      content:
+        application/json:
+          schema:
+            type: object
     ParseError:
       description: When a mask can't be parsed
-      content: {}
+      content:
+        application/json:
+          schema:
+            type: object