From 635ddb05ffb53151360272bfd2a12cfe9e1eac96 Mon Sep 17 00:00:00 2001 From: fujinhua Date: Thu, 17 Aug 2017 17:19:03 +0800 Subject: Add swagger for ns pkg distribue Change-Id: I05cbf2b7cdd26c08cdb6063ab1779b2a132e0666 Issue-Id: VFC-103 Signed-off-by: fujinhua --- lcm/ns/swagger.json | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) 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": { -- cgit 1.2.3-korg