From 13e2f5d3ba970ad4cae7c632e509238976811d74 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Thu, 9 Jan 2020 15:03:27 +0000 Subject: [PATCH] add 400-error info. to PUT request in YAML file. --- app/swagger.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/swagger.yml b/app/swagger.yml index fd5671a..cdbbb2a 100644 --- a/app/swagger.yml +++ b/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: