update link to upper-constraints.txt
[vfc/nfvo/lcm.git] / lcm / swagger / vfc.db.swagger.json
1 {\r
2     "swagger": "2.0",\r
3     "info": {\r
4         "version": "1.0.0",\r
5         "title": "ONAP VFC Service Internal DB Rest API"\r
6     },\r
7     "basePath": "/api/nslcm/v1",\r
8     "paths": {\r
9         "/mandb/{modelName}": {\r
10             "get": {\r
11                 "tags": [\r
12                     "Database"\r
13                 ],\r
14                 "summary": "query ns table info",\r
15                 "description": "query ns table info",\r
16                 "operationId": "query_ns_table",\r
17                 "consumes": [\r
18                     "application/json"\r
19                 ],\r
20                 "produces": [\r
21                     "application/json"\r
22                 ],\r
23                 "parameters": [\r
24                     {\r
25                         "required": true,\r
26                         "type": "string",\r
27                         "description": "model Name.",\r
28                         "name": "modelName",\r
29                         "in": "path"\r
30                     }\r
31                 ],\r
32                 "responses": {\r
33                     "200": {\r
34                         "description": "successful operation",\r
35                         "schema": {\r
36                             "$ref": "#/definitions/TableInfo"\r
37                         }\r
38                     },\r
39                     "404": {\r
40                         "description": "URL not found"\r
41                     },\r
42                     "500": {\r
43                         "description": "the url is invalid"\r
44                     }\r
45                 }\r
46             },\r
47             "delete": {\r
48                 "tags": [\r
49                     "Database"\r
50                 ],\r
51                 "summary": "ns table delete",\r
52                 "description": "ns table delete",\r
53                 "operationId": "ns_table_delete",\r
54                 "consumes": [\r
55                     "application/json"\r
56                 ],\r
57                 "produces": [\r
58                     "application/json"\r
59                 ],\r
60                 "parameters": [\r
61                     {\r
62                         "required": true,\r
63                         "type": "string",\r
64                         "description": "model Name.",\r
65                         "name": "modelName",\r
66                         "in": "path"\r
67                     }\r
68                 ],\r
69                 "responses": {\r
70                     "204": {\r
71                         "description": "The tables were deleted successfully."\r
72                     },\r
73                     "404": {\r
74                         "description": "URL not found"\r
75                     }\r
76                 }\r
77             }\r
78         }\r
79     },\r
80     "definitions": {\r
81         "TableInfo": {\r
82             "type": "object",\r
83             "properties": {\r
84                 "count": {\r
85                     "type": "string"\r
86                 }\r
87             }\r
88         }\r
89     }\r
90 }