From a88ccc278196d849e03cc639318bac75c45cfe47 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Fri, 18 Aug 2017 11:48:57 +0800 Subject: [PATCH] Add swagger for nf pkg del and get Change-Id: Ic0275ce85da114696de41015c3a9d21d69523294 Issue-Id: VFC-104 Signed-off-by: fujinhua --- lcm/ns/swagger.json | 116 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 116 insertions(+) diff --git a/lcm/ns/swagger.json b/lcm/ns/swagger.json index 2e03c651..301dc164 100644 --- a/lcm/ns/swagger.json +++ b/lcm/ns/swagger.json @@ -211,6 +211,76 @@ } } }, + "/vnfpackage/{csarId}": { + "get": { + "tags": [ + "nf package Resource" + ], + "summary": "query one nf package info", + "description": "query one nf package info", + "operationId": "query_one_nf_package", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "csarId", + "in": "path", + "description": "csar id of nf package", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/NfPackageInfo" + } + }, + "500": { + "description": "internal error" + } + } + }, + "delete": { + "tags": [ + "nf package Resource" + ], + "summary": "delete nf pkg", + "description": "delete nf pkg", + "operationId": "delete_nf_pkg", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "csarId", + "in": "path", + "description": "csar id of nf package", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "", + "schema": { + "$ref": "#/definitions/NfPkgPostResponse" + } + }, + "500": { + "description": "internal error" + } + } + } + }, "/ns/vls": { "post": { "tags": [ @@ -987,6 +1057,52 @@ "type": "object" } }, + "NfPackageInfo": { + "type": "object", + "properties": { + "csarId": { + "type": "string" + }, + "packageInfo": { + "$ref": "#/definitions/NfPkgDetailInfo" + }, + "imageInfo": { + "$ref": "#/definitions/NfPkgImgInfo" + }, + "vnfInstanceInfo": { + "$ref": "#/definitions/NfInstListInfo" + } + } + }, + "NfPkgDetailInfo": { + "type": "object", + "properties": { + "vnfdId": { + "type": "string" + }, + "vnfdProvider": { + "type": "string" + }, + "vnfdVersion": { + "type": "string" + }, + "vnfVersion": { + "type": "string" + } + } + }, + "NfInstListInfo": { + "type": "array", + "items": { + "type": "object" + } + }, + "NfPkgImgInfo": { + "type": "array", + "items": { + "type": "object" + } + }, "VlPostRequest": { "type": "object", "properties": { -- 2.16.6