New API for getting xApp config 41/5241/1
authorMohamed Abukar <abukar.mohamed@nokia.com>
Sun, 6 Dec 2020 11:10:25 +0000 (13:10 +0200)
committerMohamed Abukar <abukar.mohamed@nokia.com>
Sun, 6 Dec 2020 11:10:31 +0000 (13:10 +0200)
Change-Id: I7437c244c62f7cb052d2bab7cd786633cfc40601
Signed-off-by: Mohamed Abukar <abukar.mohamed@nokia.com>
api/xapp_rest_api.yaml

index efd5b8c..e229422 100755 (executable)
@@ -11,6 +11,21 @@ basePath: /ric/v1
 schemes:
   - http
 paths:
+  /config:
+    get:
+      summary: Returns the configuration of all xapps
+      tags:
+        - xapp
+      operationId: getXappConfigList
+      produces:
+        - application/json
+      responses:
+        '200':
+          description: successful query of xApp config
+          schema:
+            $ref: '#/definitions/XappConfigList'
+        '500':
+          description: Internal error
   /subscriptions:
     get:
       summary: Returns list of subscriptions
@@ -100,6 +115,21 @@ paths:
         '500':
           description: Internal error
 definitions:
+  XAppConfig:
+    type: object
+    required:
+      - metadata
+      - config
+    properties:
+      metadata:
+        $ref: '#/definitions/ConfigMetadata'
+      config:
+        type: object
+        description: Configuration in JSON format
+  XappConfigList:
+    type: array
+    items:
+      $ref: '#/definitions/XAppConfig'
   SubscriptionType:
     type: string
     enum: