diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-08-18 09:08:19 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-08-18 09:08:19 +0800 |
commit | cd7e9bf2b33a4ae48f4a82665fb703b1a12aca08 (patch) | |
tree | 9674b9fc1b58cb91bde1de91605d44ac4d2f3409 | |
parent | 635ddb05ffb53151360272bfd2a12cfe9e1eac96 (diff) |
Add swagger for ns pkg del and get
Change-Id: I15b808cdfb626b17793c7ad95aa8424ca1812a9f
Issue-Id: VFC-104
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/ns/swagger.json | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/lcm/ns/swagger.json b/lcm/ns/swagger.json index c8262dba..2f74e5ef 100644 --- a/lcm/ns/swagger.json +++ b/lcm/ns/swagger.json @@ -69,6 +69,79 @@ "schema": { "$ref": "#/definitions/NsPkgPostResponse" } + }, + "500": { + "description": "internal error" + } + } + } + }, + "/nspackage/{csarId}": { + "get": { + "tags": [ + "ns package Resource" + ], + "summary": "query one ns package info", + "description": "query one ns package info", + "operationId": "query_one_ns_package", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "csarId", + "in": "path", + "description": "csar id of ns package", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/NsPackageInfo" + } + }, + "500": { + "description": "internal error" + } + } + }, + "delete": { + "tags": [ + "ns package Resource" + ], + "summary": "delete ns pkg", + "description": "delete ns pkg", + "operationId": "delete_ns_pkg", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "csarId", + "in": "path", + "description": "csar id of ns package", + "required": true, + "type": "string" + } + ], + "responses": { + "202": { + "description": "", + "schema": { + "$ref": "#/definitions/NsPkgPostResponse" + } + }, + "500": { + "description": "internal error" } } } @@ -775,10 +848,50 @@ "type": "object", "properties": { "csars": { + "$ref": "#/definitions/NsPkgListInfo" + } + } + }, + "NsPkgListInfo": { + "type": "array", + "items": { + "type": "object" + } + }, + "NsPackageInfo": { + "type": "object", + "properties": { + "csarId": { "type": "string" + }, + "packageInfo": { + "$ref": "#/definitions/NsPkgDetailInfo" + }, + "nsInstanceInfo": { + "$ref": "#/definitions/NsInstListInfo" } } }, + "NsPkgDetailInfo": { + "type": "object", + "properties": { + "nsdId": { + "type": "string" + }, + "nsdProvider": { + "type": "string" + }, + "nsdVersion": { + "type": "string" + } + } + }, + "NsInstListInfo": { + "type": "array", + "items": { + "type": "object" + } + }, "VlPostRequest": { "type": "object", "properties": { |