From d377ef4eca2516e10daff2ac548c7a6706ac519c Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Thu, 9 Jan 2020 14:44:07 +0000 Subject: [PATCH] add secirity token checks to status change A.P.I. call. --- app/readings.db | Bin 40960 -> 40960 bytes app/services/post_services.py | 32 +++++++++++++++++--------------- app/swagger.yml | 6 ++++++ 3 files changed, 23 insertions(+), 15 deletions(-) diff --git a/app/readings.db b/app/readings.db index f3d6b7a86402687a6a69adc490cef3e1b2e37422..ab91286eeee0e7f8cb670a0a1ffbbf4e2b77df5b 100644 GIT binary patch delta 218 zcmZoTz|?SnX@WE(*F+g-My`zsOZYdlD7@w8H#D&_F|sl-)-yCRGc&f_r0@|<%)}V0 cn8Q1MAr!qPCi!V;n}`-R#jct(VKbm101gK_Z~y=R delta 277 zcmZoTz|?SnX@WE(_e2?IM(&LXOZYjM`1dpLKj7cLSx{gzzoR@83xgx0k%6J5uAzah zp{0VMxs`#5m8rR&0T_tOF#;8E7#SED=o%R68dxeA7+4t?S(zH>nHd- The current status of the device you would like to log. The two status types are "on" and "off". + token: + type: string + example: it-is-not-password-if-you-are-wondering + description: >- + This is basically a token to check the info. sent to + the server is from a valid machine. responses: 201: description: >-