Modify the database in the swagger
[vfc/nfvo/lcm.git] / lcm / swagger / vfc.db.swagger.json
index 6c8efb0..fde55d3 100644 (file)
@@ -1 +1,90 @@
-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     
\ No newline at end of file
+{\r
+    "swagger": "2.0",\r
+    "info": {\r
+        "version": "1.0.0",\r
+        "title": "ONAP VFC Service Internal DB Rest API"\r
+    },\r
+    "basePath": "/api/nslcm/v1",\r
+    "paths": {\r
+        "/mandb/{modelName}": {\r
+            "get": {\r
+                "tags": [\r
+                    "Database"\r
+                ],\r
+                "summary": "query ns table info",\r
+                "description": "query ns table info",\r
+                "operationId": "query_ns_table",\r
+                "consumes": [\r
+                    "application/json"\r
+                ],\r
+                "produces": [\r
+                    "application/json"\r
+                ],\r
+                "parameters": [\r
+                    {\r
+                        "required": true,\r
+                        "type": "string",\r
+                        "description": "model Name.",\r
+                        "name": "modelName",\r
+                        "in": "path"\r
+                    }\r
+                ],\r
+                "responses": {\r
+                    "200": {\r
+                        "description": "successful operation",\r
+                        "schema": {\r
+                            "$ref": "#/definitions/TableInfo"\r
+                        }\r
+                    },\r
+                    "404": {\r
+                        "description": "URL not found"\r
+                    },\r
+                    "500": {\r
+                        "description": "the url is invalid"\r
+                    }\r
+                }\r
+            },\r
+            "delete": {\r
+                "tags": [\r
+                    "Database"\r
+                ],\r
+                "summary": "ns table delete",\r
+                "description": "ns table delete",\r
+                "operationId": "ns_table_delete",\r
+                "consumes": [\r
+                    "application/json"\r
+                ],\r
+                "produces": [\r
+                    "application/json"\r
+                ],\r
+                "parameters": [\r
+                    {\r
+                        "required": true,\r
+                        "type": "string",\r
+                        "description": "model Name.",\r
+                        "name": "modelName",\r
+                        "in": "path"\r
+                    }\r
+                ],\r
+                "responses": {\r
+                    "204": {\r
+                        "description": "The tables were deleted successfully."\r
+                    },\r
+                    "404": {\r
+                        "description": "URL not found"\r
+                    }\r
+                }\r
+            }\r
+        }\r
+    },\r
+    "definitions": {\r
+        "TableInfo": {\r
+            "type": "object",\r
+            "properties": {\r
+                "count": {\r
+                    "type": "string"\r
+                }\r
+            }\r
+        }\r
+    }\r
+}
\ No newline at end of file