File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {
2+ "swagger" : " 2.0" ,
3+ "basePath" : " /gotapi/device" ,
4+ "info" : {
5+ "title" : " device Profile" ,
6+ "version" : " 2.0.0" ,
7+ "description" : " スマートデバイスへの接続関連の機能を提供するAPI。"
8+ },
9+ "consumes" : [
10+ " application/x-www-form-urlencoded" ,
11+ " multipart/form-data"
12+ ],
13+ "paths" : {
14+ "/pairing" : {
15+ "post" : {
16+ "operationId" : " devicePairingPost" ,
17+ "x-type" : " one-shot" ,
18+ "summary" : " スマートデバイスとペアリングする。" ,
19+ "description" : " " ,
20+ "parameters" : [
21+ {
22+ "name" : " serviceId" ,
23+ "description" : " サービスID。<br>ペアリング対象スマートデバイス" ,
24+ "in" : " query" ,
25+ "required" : true ,
26+ "type" : " string"
27+ }
28+ ],
29+ "responses" : {
30+ "200" : {
31+ "description" : " " ,
32+ "schema" : {
33+ "$ref" : " #/definitions/PairingResponse"
34+ },
35+ "examples" : {
36+ "application/json" : {
37+ "result" : 0 ,
38+ "product" : " Example System" ,
39+ "version" : " 1.0.0"
40+ }
41+ }
42+ }
43+ }
44+ },
45+ "delete" : {
46+ "operationId" : " devicePairingDelete" ,
47+ "x-type" : " one-shot" ,
48+ "summary" : " スマートデバイスとペアリングを解除する。" ,
49+ "description" : " " ,
50+ "parameters" : [
51+ {
52+ "name" : " serviceId" ,
53+ "description" : " サービスID。<br>ペアリング解除対象スマートデバイス" ,
54+ "in" : " query" ,
55+ "required" : true ,
56+ "type" : " string"
57+ }
58+ ],
59+ "responses" : {
60+ "200" : {
61+ "description" : " " ,
62+ "schema" : {
63+ "$ref" : " #/definitions/PairingReleaseResponse"
64+ },
65+ "examples" : {
66+ "application/json" : {
67+ "result" : 0 ,
68+ "product" : " Example System" ,
69+ "version" : " 1.0.0"
70+ }
71+ }
72+ }
73+ }
74+ }
75+ }
76+ },
77+ "definitions" : {
78+ "PairingResponse" : {
79+ "type" : " object" ,
80+ "allOf" : [
81+ {
82+ "$ref" : " #/definitions/CommonResponse"
83+ }
84+ ]
85+ },
86+ "PairingReleaseResponse" : {
87+ "type" : " object" ,
88+ "allOf" : [
89+ {
90+ "$ref" : " #/definitions/CommonResponse"
91+ }
92+ ]
93+ },
94+ "CommonResponse" : {
95+ "type" : " object" ,
96+ "required" : [
97+ " result" ,
98+ " product" ,
99+ " version"
100+ ],
101+ "properties" : {
102+ "result" : {
103+ "type" : " integer" ,
104+ "title" : " 処理結果" ,
105+ "description" : " 0: 正常応答<br>0以外: 異常応答"
106+ },
107+ "product" : {
108+ "type" : " string" ,
109+ "title" : " システム名" ,
110+ "description" : " DeviceConnectシステムの名前。"
111+ },
112+ "version" : {
113+ "type" : " string" ,
114+ "title" : " システムバージョン" ,
115+ "description" : " DeviceConnectシステムのバージョン名。"
116+ },
117+ "hmac" : {
118+ "type" : " string" ,
119+ "title" : " 署名" ,
120+ "description" : " レスポンスに対する署名。アプリケーション側から事前にHMACキーを共有されていた場合は必須。"
121+ }
122+ }
123+ }
124+ }
125+ }
You can’t perform that action at this time.
0 commit comments