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
2 changes: 1 addition & 1 deletion api/airConditioner.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
}
}
},
"/temperature": {
"/targetTemperature": {
"get": {
"operationId": "airConditionerTemperatureGet",
"x-type": "one-shot",
Expand Down
56 changes: 0 additions & 56 deletions api/temperature.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,54 +56,6 @@
}
}
}
},
"put": {
"operationId": "temperaturePut",
"x-type": "one-shot",
"summary": "スマートデバイスの温度設定値を設定する。",
"description": "typeはそれぞれ<br> 1:摂氏<br> 2:華氏<br> を表している。<br> temperatureに設定できる値は、摂氏の場合は0以上50以下, 華氏の場合は32以上122以下。",
"parameters": [
{
"name": "serviceId",
"description": "サービスID。",
"in": "formData",
"required": true,
"type": "string"
},
{
"name": "temperature",
"description": "温度の値。",
"in": "formData",
"required": true,
"type": "integer"
},
{
"name": "type",
"description": "1:摂氏<br> 2:華氏",
"in": "formData",
"required": false,
"type": "integer",
"enum": [
1,
2
]
}
],
"responses": {
"200": {
"description": "温度設定値の設定結果を返す。 設定に失敗した場合はエラーを返す。",
"schema": {
"$ref": "#/definitions/PutTemperatureResponse"
},
"examples": {
"application/json": {
"product": "Example System",
"version": "1.0",
"result": 0
}
}
}
}
}
}
},
Expand Down Expand Up @@ -151,14 +103,6 @@
}
]
},
"PutTemperatureResponse": {
"type": "object",
"allOf": [
{
"$ref": "#/definitions/CommonResponse"
}
]
},
"CommonResponse": {
"type": "object",
"required": [
Expand Down
2 changes: 1 addition & 1 deletion yaml/airConditioner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ paths:
product: Example System
version: 1.0.0
roomtemperature: '25'
/temperature:
/targetTemperature:
get:
operationId: airConditionerTemperatureGet
x-type: one-shot
Expand Down
48 changes: 0 additions & 48 deletions yaml/temperature.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,50 +50,6 @@ paths:
type: 1
timeStamp: 1431856940275
timeStampString: '2015-05-17T10:02:20+09:00'
put:
operationId: temperaturePut
x-type: one-shot
summary: スマートデバイスの温度設定値を設定する。
description: >-
typeはそれぞれ<br>
1:摂氏<br>
2:華氏<br>
を表している。<br>
temperatureに設定できる値は、摂氏の場合は0以上50以下,
華氏の場合は32以上122以下。
parameters:
- name: serviceId
description: サービスID。
in: formData
required: true
type: string
- name: temperature
description: 温度の値。
in: formData
required: true
type: integer
- name: type
description: >-
1:摂氏<br>
2:華氏
in: formData
required: false
type: integer
enum:
- 1
- 2
responses:
'200':
description: >-
温度設定値の設定結果を返す。
設定に失敗した場合はエラーを返す。
schema:
$ref: '#/definitions/PutTemperatureResponse'
examples:
application/json:
product: Example System
version: '1.0'
result: 0
definitions:
GetTemperatureResponse:
type: object
Expand Down Expand Up @@ -129,10 +85,6 @@ definitions:
description: >-
タイムスタンプと同じタイムスタンプを
RFC3339「yyyy-MM-dd''T''HH:mm:ssZZZZZ」の形式で返す。
PutTemperatureResponse:
type: object
allOf:
- $ref: '#/definitions/CommonResponse'
CommonResponse:
type: object
required:
Expand Down