1
0
Fork 0
Browse Source

add 400-error info. to PUT request in YAML file.

stable
Craig Oates 4 years ago
parent
commit
13e2f5d3ba
  1. 10
      app/swagger.yml

10
app/swagger.yml

@ -79,6 +79,11 @@ paths:
201:
description: >-
The reading was successfully added to the database.
400:
description: >-
The data sent to the sever was invalid or incorrectly
formatted. The most likely reasons are invalid light-meter
Id. specified and incorrect datetime format used.
/readings/latest/{light_meter}:
get:
@ -265,6 +270,11 @@ paths:
201:
description: >-
The status update was successfully added to the database.
400:
description: >-
The data sent to the sever was invalid or incorrectly
formatted. The most likely reasons are invalid device Id.
specified and incorrect datetime format used.
/status/latest/{device}:
get: