summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2017-08-18 09:20:00 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2017-08-18 09:20:00 +0800
commit3e4d2bdaf9d8d065bbf3331b0ff65e9b2a3adad8 (patch)
treef90a5562123c2aff875a689b72a230f4aa025b83
parentcd7e9bf2b33a4ae48f4a82665fb703b1a12aca08 (diff)
Add swagger for nf pkg distribute
Change-Id: If4f5ab38075427dba12956d25bce5b9b5b94e2e9 Issue-Id: VFC-103 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/ns/swagger.json95
1 files changed, 95 insertions, 0 deletions
diff --git a/lcm/ns/swagger.json b/lcm/ns/swagger.json
index 2f74e5ef..2e03c651 100644
--- a/lcm/ns/swagger.json
+++ b/lcm/ns/swagger.json
@@ -146,6 +146,71 @@
}
}
},
+ "/vnfpackage": {
+ "get": {
+ "tags": [
+ "nf package Resource"
+ ],
+ "summary": "query nf package info",
+ "description": "query nf package info",
+ "operationId": "query_nf_package",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ ],
+ "responses": {
+ "200": {
+ "description": "successful operation",
+ "schema": {
+ "$ref": "#/definitions/NfPackageListInfo"
+ }
+ },
+ "500": {
+ "description": "internal error"
+ }
+ }
+ },
+ "post": {
+ "tags": [
+ "nf package Resource"
+ ],
+ "summary": "nf package distribute",
+ "description": "nf package distribute",
+ "operationId": "nf_pkg_distribute",
+ "consumes": [
+ "application/json"
+ ],
+ "produces": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "in": "body",
+ "name": "body",
+ "description": "distribute request param",
+ "required": true,
+ "schema": {
+ "$ref": "#/definitions/NfPkgPostRequest"
+ }
+ }
+ ],
+ "responses": {
+ "202": {
+ "description": "",
+ "schema": {
+ "$ref": "#/definitions/NfPkgPostResponse"
+ }
+ },
+ "500": {
+ "description": "internal error"
+ }
+ }
+ }
+ },
"/ns/vls": {
"post": {
"tags": [
@@ -892,6 +957,36 @@
"type": "object"
}
},
+ "NfPkgPostRequest": {
+ "type": "object",
+ "properties": {
+ "csarId": {
+ "type": "string"
+ }
+ }
+ },
+ "NfPkgPostResponse": {
+ "type": "object",
+ "properties": {
+ "jobId": {
+ "type": "string"
+ }
+ }
+ },
+ "NfPackageListInfo": {
+ "type": "object",
+ "properties": {
+ "csars": {
+ "$ref": "#/definitions/NfPkgListInfo"
+ }
+ }
+ },
+ "NfPkgListInfo": {
+ "type": "array",
+ "items": {
+ "type": "object"
+ }
+ },
"VlPostRequest": {
"type": "object",
"properties": {