From a899895eaf54b17e94ae1a4668cca33d19d95762 Mon Sep 17 00:00:00 2001 From: Mohamed Abukar Date: Sun, 6 Dec 2020 13:10:25 +0200 Subject: [PATCH] New API for getting xApp config Change-Id: I7437c244c62f7cb052d2bab7cd786633cfc40601 Signed-off-by: Mohamed Abukar --- api/xapp_rest_api.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/api/xapp_rest_api.yaml b/api/xapp_rest_api.yaml index efd5b8c..e229422 100755 --- a/api/xapp_rest_api.yaml +++ b/api/xapp_rest_api.yaml @@ -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: -- 2.16.6