Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 48 additions & 1 deletion swagger2.0/oic.sec.account.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down