diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-08-17 17:19:03 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-08-17 17:19:03 +0800 |
commit | 635ddb05ffb53151360272bfd2a12cfe9e1eac96 (patch) | |
tree | 59e71aaa18c12274dcfdf51f982b608abd415e1a | |
parent | 43fbcbf0ac958e0871caa1e1b7ae4978800b0021 (diff) |
Add swagger for ns pkg distribue
Change-Id: I05cbf2b7cdd26c08cdb6063ab1779b2a132e0666
Issue-Id: VFC-103
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/ns/swagger.json | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/lcm/ns/swagger.json b/lcm/ns/swagger.json index 11754206..c8262dba 100644 --- a/lcm/ns/swagger.json +++ b/lcm/ns/swagger.json @@ -11,6 +11,68 @@ } ], "paths": { + "/nspackage": { + "get": { + "tags": [ + "ns package Resource" + ], + "summary": "query ns package info", + "description": "query ns package info", + "operationId": "query_ns_package", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/NsPackageListInfo" + } + }, + "500": { + "description": "internal error" + } + } + }, + "post": { + "tags": [ + "ns package Resource" + ], + "summary": "ns package distribute", + "description": "ns package distribute", + "operationId": "ns_pkg_distribute", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "in": "body", + "name": "body", + "description": "distribute request param", + "required": true, + "schema": { + "$ref": "#/definitions/NsPkgPostRequest" + } + } + ], + "responses": { + "202": { + "description": "", + "schema": { + "$ref": "#/definitions/NsPkgPostResponse" + } + } + } + } + }, "/ns/vls": { "post": { "tags": [ @@ -687,6 +749,36 @@ } }, "definitions": { + "NsPkgPostRequest": { + "type": "object", + "properties": { + "csarId": { + "type": "string" + } + } + }, + "NsPkgPostResponse": { + "type": "object", + "properties": { + "status": { + "type": "string" + }, + "statusDescription": { + "type": "string" + }, + "errorCode": { + "type": "string" + } + } + }, + "NsPackageListInfo": { + "type": "object", + "properties": { + "csars": { + "type": "string" + } + } + }, "VlPostRequest": { "type": "object", "properties": { |