Skip to content
Merged
Show file tree
Hide file tree
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
125 changes: 125 additions & 0 deletions api/device.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"swagger": "2.0",
"basePath": "/gotapi/device",
"info": {
"title": "device Profile",
"version": "2.0.0",
"description": "スマートデバイスへの接続関連の機能を提供するAPI。"
},
"consumes": [
"application/x-www-form-urlencoded",
"multipart/form-data"
],
"paths": {
"/pairing": {
"post": {
"operationId": "devicePairingPost",
"x-type": "one-shot",
"summary": "スマートデバイスとペアリングする。",
"description": "",
"parameters": [
{
"name": "serviceId",
"description": "サービスID。<br>ペアリング対象スマートデバイス",
"in": "query",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/PairingResponse"
},
"examples": {
"application/json": {
"result": 0,
"product": "Example System",
"version": "1.0.0"
}
}
}
}
},
"delete": {
"operationId": "devicePairingDelete",
"x-type": "one-shot",
"summary": "スマートデバイスとペアリングを解除する。",
"description": "",
"parameters": [
{
"name": "serviceId",
"description": "サービスID。<br>ペアリング解除対象スマートデバイス",
"in": "query",
"required": true,
"type": "string"
}
],
"responses": {
"200": {
"description": "",
"schema": {
"$ref": "#/definitions/PairingReleaseResponse"
},
"examples": {
"application/json": {
"result": 0,
"product": "Example System",
"version": "1.0.0"
}
}
}
}
}
}
},
"definitions": {
"PairingResponse": {
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CommonResponse"
}
]
},
"PairingReleaseResponse": {
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CommonResponse"
}
]
},
"CommonResponse": {
"type": "object",
"required": [
"result",
"product",
"version"
],
"properties": {
"result": {
"type": "integer",
"title": "処理結果",
"description": "0: 正常応答<br>0以外: 異常応答"
},
"product": {
"type": "string",
"title": "システム名",
"description": "DeviceConnectシステムの名前。"
},
"version": {
"type": "string",
"title": "システムバージョン",
"description": "DeviceConnectシステムのバージョン名。"
},
"hmac": {
"type": "string",
"title": "署名",
"description": "レスポンスに対する署名。アプリケーション側から事前にHMACキーを共有されていた場合は必須。"
}
}
}
}
}
Loading