X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=lcm%2Fswagger%2Fvfc.db.swagger.json;h=fde55d320a37e5ca49a4db16b6044dfcda3d5137;hb=refs%2Fchanges%2F95%2F16295%2F1;hp=6c8efb02357b799e20ac5aaba55837ea716b4bf0;hpb=d4d9f19a30092bdf1df6aabe5b66855b000dbc66;p=vfc%2Fnfvo%2Flcm.git diff --git a/lcm/swagger/vfc.db.swagger.json b/lcm/swagger/vfc.db.swagger.json index 6c8efb02..fde55d32 100644 --- a/lcm/swagger/vfc.db.swagger.json +++ b/lcm/swagger/vfc.db.swagger.json @@ -1 +1,90 @@ - \ No newline at end of file +{ + "swagger": "2.0", + "info": { + "version": "1.0.0", + "title": "ONAP VFC Service Internal DB Rest API" + }, + "basePath": "/api/nslcm/v1", + "paths": { + "/mandb/{modelName}": { + "get": { + "tags": [ + "Database" + ], + "summary": "query ns table info", + "description": "query ns table info", + "operationId": "query_ns_table", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "required": true, + "type": "string", + "description": "model Name.", + "name": "modelName", + "in": "path" + } + ], + "responses": { + "200": { + "description": "successful operation", + "schema": { + "$ref": "#/definitions/TableInfo" + } + }, + "404": { + "description": "URL not found" + }, + "500": { + "description": "the url is invalid" + } + } + }, + "delete": { + "tags": [ + "Database" + ], + "summary": "ns table delete", + "description": "ns table delete", + "operationId": "ns_table_delete", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "required": true, + "type": "string", + "description": "model Name.", + "name": "modelName", + "in": "path" + } + ], + "responses": { + "204": { + "description": "The tables were deleted successfully." + }, + "404": { + "description": "URL not found" + } + } + } + } + }, + "definitions": { + "TableInfo": { + "type": "object", + "properties": { + "count": { + "type": "string" + } + } + } + } +} \ No newline at end of file