diff --git a/swagger2.0/oic.sec.account.swagger.json b/swagger2.0/oic.sec.account.swagger.json index da4982b..e0a90ad 100755 --- a/swagger2.0/oic.sec.account.swagger.json +++ b/swagger2.0/oic.sec.account.swagger.json @@ -51,7 +51,36 @@ "delete": { "description": "Delete a device. This also removes all resources in the device on cloud side.\nexample: /oic/account?di=9cfbeb8e-5a1e-4d1c-9d01-00c04fd430c8&accesstoken=0f3d9f7fe5491d54077d\n", "parameters": [ - {"$ref": "#/parameters/interface"} + {"$ref": "#/parameters/interface"}, + { + "in": "query", + "name": "di", + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "required": true, + "x-example": { + "di": "9cfbeb8e-5a1e-4d1c-9d01-00c04fd430c8" + } + }, + { + "in": "query", + "name": "proxied_di", + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", + "required": false, + "x-example": { + "proxied_di": "c4108bba-6a7e-11eb-84d1-0c9d928536d7" + } + }, + { + "in": "query", + "name": "accesstoken", + "type": "string", + "required": true, + "x-example": { + "accesstoken": "0f3d9f7fe5491d54077d" + } + } ], "responses": { "202": { @@ -84,6 +113,15 @@ "description": "Unique Device identifier. Format pattern according to IETF RFC 4122.", "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$", "type": "string" + }, + "proxied_dis": { + "description": "Device IDs of the D2D Devices which connect to OCF Cloud through the Cloud Proxy whose Device ID is '/oic/sec/account:di'", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + } } }, "type" : "object", @@ -135,6 +173,15 @@ "readOnly": true, "type": "string" }, + "proxied_dis": { + "description": "Device IDs of the D2D Devices which connect to OCF Cloud through the Cloud Proxy whose Device ID is '/oic/sec/account:di'", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string", + "pattern": "^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$" + } + }, "if": { "description": "The interface set supported by this resource", "items": {