Skip to content

Commit 8c40d43

Browse files
TemperatureProfileの温度設定用APIを削除。
- 文言を修正。
1 parent bf31e84 commit 8c40d43

1 file changed

Lines changed: 3 additions & 53 deletions

File tree

api/temperature.json

Lines changed: 3 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"info": {
55
"title": "Temperature Profile",
66
"version": "2.0.0",
7-
"description": "スマートデバイスの計測または管理している温度を提供するプロファイル"
7+
"description": "スマートデバイスの計測している温度を提供するプロファイル"
88
},
99
"consumes": [
1010
"application/x-www-form-urlencoded",
@@ -14,7 +14,7 @@
1414
"/": {
1515
"get": {
1616
"x-type": "one-shot",
17-
"summary": "スマートデバイスの温度設定値を取得する",
17+
"summary": "スマートデバイスの温度実測値を取得する",
1818
"description": "typeはそれぞれ、1:摂氏、2:華氏を表している。",
1919
"parameters": [
2020
{
@@ -35,7 +35,7 @@
3535
],
3636
"responses": {
3737
"200": {
38-
"description": "",
38+
"description": "スマートデバイスが計測した温度を返す。",
3939
"schema": {
4040
"$ref": "#/definitions/GetTemperatureResponse"
4141
},
@@ -50,50 +50,6 @@
5050
}
5151
}
5252
}
53-
},
54-
"put": {
55-
"x-type": "one-shot",
56-
"summary": "スマートデバイスの温度設定値を設定する。",
57-
"description": "typeはそれぞれ、1:摂氏、2:華氏を表している。<br>temperatureに設定できる値は、摂氏の場合は0以上50以下, 華氏の場合は32以上122以下。",
58-
"parameters": [
59-
{
60-
"name": "serviceId",
61-
"description": "サービスID。",
62-
"in": "formData",
63-
"required": true,
64-
"type": "string"
65-
},
66-
{
67-
"name": "temperature",
68-
"description": "温度の値。",
69-
"in": "formData",
70-
"required": true,
71-
"type": "integer"
72-
},
73-
{
74-
"name": "type",
75-
"description": "1:摂氏、2:華氏",
76-
"in": "formData",
77-
"required": false,
78-
"type": "integer",
79-
"enum": [1, 2]
80-
}
81-
],
82-
"responses": {
83-
"200": {
84-
"description": "",
85-
"schema": {
86-
"$ref": "#/definitions/PutTemperatureResponse"
87-
},
88-
"examples": {
89-
"application/json": {
90-
"product": "Example System",
91-
"version": "1.0",
92-
"result": 0
93-
}
94-
}
95-
}
96-
}
9753
}
9854
}
9955
},
@@ -118,12 +74,6 @@
11874
}
11975
}]
12076
},
121-
"PutTemperatureResponse": {
122-
"type": "object",
123-
"allOf": [{
124-
"$ref": "#/definitions/CommonResponse"
125-
}]
126-
},
12777
"CommonResponse": {
12878
"type": "object",
12979
"required": [

0 commit comments

Comments
 (0)