From 6394009f40cb4bf3e603b9d02e46245d15730237 Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Wed, 8 Jan 2020 22:39:15 +0000 Subject: [PATCH] implement get all status changes (all devices) A.P.I. call. --- app/readings.db | Bin 40960 -> 40960 bytes app/swagger.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/app/readings.db b/app/readings.db index 4b7ad3219c65b18a97ce1b0aa3b7ca9dd01fdde1..23ac2a8716c40d37eef376a4c1873bfc64d76b28 100644 GIT binary patch delta 59 zcmV-B0L1@*zyg540+1U44v`!~0S>WXq(2M<4|V_#-4DADm=AWd5fEk%0w4sFy-y(p R0|Wp;6O+MD8?(7jM^Fd#5l8?4 delta 51 zcmV-30L=e@zyg540+1U44Urr}0S&QWq(2G+510TC-4DADn6nWOiVp@M0|Wp;6O+MD J8?(7jM^KHA4?q9_ diff --git a/app/swagger.yml b/app/swagger.yml index 245e556..77dba95 100644 --- a/app/swagger.yml +++ b/app/swagger.yml @@ -354,3 +354,28 @@ paths: example: off description: >- The status of the device after the change occurred. + + /status/all: + get: + operationId: api.get_all_status_logs_for_every_device + tags: + - Request Device Status + summary: >- + Returns every logged status change of every device in the + project. + description: >- + Use this U.R.L. to retrieve every logged status change of every + device used in this project. There is no example of the data + returned because I can't seem to replicate it as a YAML schema + which is understood by Swagger. Because of this. the return + type is registered as a free-form object. To see what the data + looks like when it is returned, I recommend you use the "Try it + out!" button to see a working example. + responses: + 200: + description: >- + All the logged status changes of every device were + successfully retrieved from the database and delivered. + schema: + type: object + additionalProperties: True