Skip to content

Commit 6b48f59

Browse files
Merge pull request #17 from TakayukiHoshi1984/modify_remove_set_temperature
TemperatureProfileの温度設定用APIを削除
2 parents 9c35b62 + 0655fd0 commit 6b48f59

File tree

4 files changed

+2
-106
lines changed

4 files changed

+2
-106
lines changed

api/airConditioner.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@
290290
}
291291
}
292292
},
293-
"/temperature": {
293+
"/targetTemperature": {
294294
"get": {
295295
"operationId": "airConditionerTemperatureGet",
296296
"x-type": "one-shot",

api/temperature.json

-56
Original file line numberDiff line numberDiff line change
@@ -56,54 +56,6 @@
5656
}
5757
}
5858
}
59-
},
60-
"put": {
61-
"operationId": "temperaturePut",
62-
"x-type": "one-shot",
63-
"summary": "スマートデバイスの温度設定値を設定する。",
64-
"description": "typeはそれぞれ<br> 1:摂氏<br> 2:華氏<br> を表している。<br> temperatureに設定できる値は、摂氏の場合は0以上50以下, 華氏の場合は32以上122以下。",
65-
"parameters": [
66-
{
67-
"name": "serviceId",
68-
"description": "サービスID。",
69-
"in": "formData",
70-
"required": true,
71-
"type": "string"
72-
},
73-
{
74-
"name": "temperature",
75-
"description": "温度の値。",
76-
"in": "formData",
77-
"required": true,
78-
"type": "integer"
79-
},
80-
{
81-
"name": "type",
82-
"description": "1:摂氏<br> 2:華氏",
83-
"in": "formData",
84-
"required": false,
85-
"type": "integer",
86-
"enum": [
87-
1,
88-
2
89-
]
90-
}
91-
],
92-
"responses": {
93-
"200": {
94-
"description": "温度設定値の設定結果を返す。 設定に失敗した場合はエラーを返す。",
95-
"schema": {
96-
"$ref": "#/definitions/PutTemperatureResponse"
97-
},
98-
"examples": {
99-
"application/json": {
100-
"product": "Example System",
101-
"version": "1.0",
102-
"result": 0
103-
}
104-
}
105-
}
106-
}
10759
}
10860
}
10961
},
@@ -151,14 +103,6 @@
151103
}
152104
]
153105
},
154-
"PutTemperatureResponse": {
155-
"type": "object",
156-
"allOf": [
157-
{
158-
"$ref": "#/definitions/CommonResponse"
159-
}
160-
]
161-
},
162106
"CommonResponse": {
163107
"type": "object",
164108
"required": [

yaml/airConditioner.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ paths:
230230
product: Example System
231231
version: 1.0.0
232232
roomtemperature: '25'
233-
/temperature:
233+
/targetTemperature:
234234
get:
235235
operationId: airConditionerTemperatureGet
236236
x-type: one-shot

yaml/temperature.yaml

-48
Original file line numberDiff line numberDiff line change
@@ -50,50 +50,6 @@ paths:
5050
type: 1
5151
timeStamp: 1431856940275
5252
timeStampString: '2015-05-17T10:02:20+09:00'
53-
put:
54-
operationId: temperaturePut
55-
x-type: one-shot
56-
summary: スマートデバイスの温度設定値を設定する。
57-
description: >-
58-
typeはそれぞれ<br>
59-
1:摂氏<br>
60-
2:華氏<br>
61-
を表している。<br>
62-
temperatureに設定できる値は、摂氏の場合は0以上50以下,
63-
華氏の場合は32以上122以下。
64-
parameters:
65-
- name: serviceId
66-
description: サービスID。
67-
in: formData
68-
required: true
69-
type: string
70-
- name: temperature
71-
description: 温度の値。
72-
in: formData
73-
required: true
74-
type: integer
75-
- name: type
76-
description: >-
77-
1:摂氏<br>
78-
2:華氏
79-
in: formData
80-
required: false
81-
type: integer
82-
enum:
83-
- 1
84-
- 2
85-
responses:
86-
'200':
87-
description: >-
88-
温度設定値の設定結果を返す。
89-
設定に失敗した場合はエラーを返す。
90-
schema:
91-
$ref: '#/definitions/PutTemperatureResponse'
92-
examples:
93-
application/json:
94-
product: Example System
95-
version: '1.0'
96-
result: 0
9753
definitions:
9854
GetTemperatureResponse:
9955
type: object
@@ -129,10 +85,6 @@ definitions:
12985
description: >-
13086
タイムスタンプと同じタイムスタンプを
13187
RFC3339「yyyy-MM-dd''T''HH:mm:ssZZZZZ」の形式で返す。
132-
PutTemperatureResponse:
133-
type: object
134-
allOf:
135-
- $ref: '#/definitions/CommonResponse'
13688
CommonResponse:
13789
type: object
13890
required:

0 commit comments

Comments
 (0)