summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-08-18 11:48:57 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-08-18 11:48:57 +0800
commita88ccc278196d849e03cc639318bac75c45cfe47 (patch)
tree2b32327b6e10ff8d563baba4a723581931a0c889
parent3e4d2bdaf9d8d065bbf3331b0ff65e9b2a3adad8 (diff)
Add swagger for nf pkg del and get
Change-Id: Ic0275ce85da114696de41015c3a9d21d69523294 Issue-Id: VFC-104 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/ns/swagger.json116
1 files changed, 116 insertions, 0 deletions
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": {