Fix errors in swagger.json
authorBin Yang <bin.yang@windriver.com>
Tue, 7 Mar 2017 08:00:12 +0000 (16:00 +0800)
committerBin Yang <bin.yang@windriver.com>
Tue, 7 Mar 2017 08:00:12 +0000 (16:00 +0800)
Change-Id: Id60869b666cbf45e3e5888ce3ac0a2bbcae8d8c2
Issue-Id: MULTIVIM-18
Signed-off-by: Bin Yang <bin.yang@windriver.com>
newton/newton/swagger/multivim.image.swagger.json
newton/newton/swagger/multivim.volume.swagger.json

index 6f8540d..dcbba06 100644 (file)
                 "visibility": {
                     "type": "string",
                     "description": "public, private, shared, or community"
-                },
-                "properties": {
-                    "type": "array",
-                    "description": "list of properties",
-                    "items": {
-                       "$ref": "#/definitions/VimImagePropertyInfo"
-                    }
-                }
-            }
-        },
-        "VimImagePropertyInfo": {
-            "type": "object",
-            "properties": {
-                "keyName": {
-                    "type": "string",
-                    "description": "property name"
-                },
-                "value": {
-                    "type": "string",
-                    "description": "property value"
                 }
             }
         },
index fe21044..c91deac 100644 (file)
                     "type": "string",
                     "description": "volume UUID"
                 },
-                "deviceId": {
+                "device": {
                     "type": "string",
-                    "description": "device UUID"
+                    "description": "device to be attached"
                 },
                 "hostName": {
                     "type": "string",