Add swagger for nf pkg distribute 59/7959/1
authorfujinhua <fu.jinhua@zte.com.cn>
Fri, 18 Aug 2017 01:20:00 +0000 (09:20 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Fri, 18 Aug 2017 01:20:00 +0000 (09:20 +0800)
Change-Id: If4f5ab38075427dba12956d25bce5b9b5b94e2e9
Issue-Id: VFC-103
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns/swagger.json

index 2f74e5e..2e03c65 100644 (file)
                 }
             }
         },
+        "/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": [
                 "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": {