1
0
Fork 0
Browse Source

add 400-error responses to GET requests in YAML file.

stable
Craig Oates 4 years ago
parent
commit
3e80738d32
  1. 12
      app/swagger.yml

12
app/swagger.yml

@ -137,6 +137,9 @@ paths:
This is the actual reading taken from the specified This is the actual reading taken from the specified
light meter, at the time specified in this response light meter, at the time specified in this response
body (I.E. JSON object). body (I.E. JSON object).
400:
description: >-
The light-meter Id. specified in invalid.
/readings/all/{light_meter}: /readings/all/{light_meter}:
get: get:
@ -188,6 +191,9 @@ paths:
This is the actual reading taken from the specified This is the actual reading taken from the specified
light meter, at the time specified in this response light meter, at the time specified in this response
body (I.E. JSON object). body (I.E. JSON object).
400:
description: >-
The light-meter Id. specified in invalid.
/readings/all: /readings/all:
get: get:
@ -326,6 +332,9 @@ paths:
type: string type: string
example: on example: on
description: The current status of the device. description: The current status of the device.
400:
description: >-
The device Id. specified in invalid.
/status/all/{device}: /status/all/{device}:
get: get:
@ -376,6 +385,9 @@ paths:
example: off example: off
description: >- description: >-
The status of the device after the change occurred. The status of the device after the change occurred.
400:
description: >-
The device Id. specified in invalid.
/status/all: /status/all:
get: get: