diff --git a/api/airConditioner.json b/api/airConditioner.json index 9c92f42..1d35d1c 100644 --- a/api/airConditioner.json +++ b/api/airConditioner.json @@ -290,7 +290,7 @@ } } }, - "/temperature": { + "/targetTemperature": { "get": { "operationId": "airConditionerTemperatureGet", "x-type": "one-shot", diff --git a/api/temperature.json b/api/temperature.json index 1a7054b..7020058 100644 --- a/api/temperature.json +++ b/api/temperature.json @@ -56,54 +56,6 @@ } } } - }, - "put": { - "operationId": "temperaturePut", - "x-type": "one-shot", - "summary": "スマートデバイスの温度設定値を設定する。", - "description": "typeはそれぞれ
1:摂氏
2:華氏
を表している。
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:摂氏
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 - } - } - } - } } } }, @@ -151,14 +103,6 @@ } ] }, - "PutTemperatureResponse": { - "type": "object", - "allOf": [ - { - "$ref": "#/definitions/CommonResponse" - } - ] - }, "CommonResponse": { "type": "object", "required": [ diff --git a/yaml/airConditioner.yaml b/yaml/airConditioner.yaml index cd6fe84..713efff 100644 --- a/yaml/airConditioner.yaml +++ b/yaml/airConditioner.yaml @@ -230,7 +230,7 @@ paths: product: Example System version: 1.0.0 roomtemperature: '25' - /temperature: + /targetTemperature: get: operationId: airConditionerTemperatureGet x-type: one-shot diff --git a/yaml/temperature.yaml b/yaml/temperature.yaml index 8f16d0e..f1b1adc 100644 --- a/yaml/temperature.yaml +++ b/yaml/temperature.yaml @@ -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はそれぞれ
- 1:摂氏
- 2:華氏
- を表している。
- 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:摂氏
- 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 @@ -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: