From d684c874e90422a064b974230b2cbd353e951ca1 Mon Sep 17 00:00:00 2001 From: Mohamed Abukar Date: Sun, 6 Dec 2020 13:08:38 +0200 Subject: [PATCH] New API for xApp registration Change-Id: I633db999a4df50b58d16464fe7e89a09f7f05169 Signed-off-by: Mohamed Abukar --- api/appmgr_rest_api.yaml | 61 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/api/appmgr_rest_api.yaml b/api/appmgr_rest_api.yaml index d744539..30c5550 100755 --- a/api/appmgr_rest_api.yaml +++ b/api/appmgr_rest_api.yaml @@ -329,6 +329,49 @@ paths: description: Successful deletion of subscription '400': description: Invalid subscription supplied + /register: + post: + summary: Register a new xApp + tags: + - xapp + - registration + operationId: registerXapp + consumes: + - application/json + produces: + - application/json + parameters: + - name: registerRequest + in: body + description: New xApp registration + required: true + schema: + $ref: '#/definitions/registerRequest' + responses: + '201': + description: Registration successful + '400': + description: Invalid input + /register/{xAppName}: + delete: + summary: Deregister an existing xApp + tags: + - xapp + - registration + operationId: deregisterXapp + parameters: + - name: xAppName + in: path + description: Xapp to be unregistered + required: true + type: string + responses: + '204': + description: Successful deregistration of xApp + '400': + description: Invalid xApp name supplied + '500': + description: Internal error definitions: AllDeployableXapps: type: array @@ -530,3 +573,21 @@ definitions: $ref: '#/definitions/EventType' xApps: $ref: '#/definitions/AllDeployedXapps' + registerRequest: + type: object + required: + - appName + - appInstanceName + - httpEndpoint + - rmrEndpoint + properties: + appName: + type: string + appVersion: + type: string + appInstanceName: + type: string + httpEndpoint: + type: string + rmrEndpoint: + type: string -- 2.16.6