From 90b6c6d1ee0d54ba3f7b6ecfc03f6d55895c8773 Mon Sep 17 00:00:00 2001 From: William Clark Date: Wed, 13 Dec 2023 12:31:07 +0000 Subject: [PATCH] fix api --- README.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d48e897..aae3d07 100644 --- a/README.md +++ b/README.md @@ -113,14 +113,16 @@ GET v1/data -> { --- fetch configuration options for a given channel id --- GET v1/config/channel/:id -> { - "id": ..., - "thermocouple": ..., - "gain": ..., - "offset": ..., - "log" ..., - "filter": { - "sample_size": ..., - "type": ..., + "channel": { + "id": ..., + "thermocouple": ..., + "gain": ..., + "offset": ..., + "log" ..., + "filter": { + "sample_size": ..., + "type": ..., + } }, "time": "..." } @@ -142,7 +144,10 @@ GET v1/config/device -> { --- Fetch the DB config options --- --- This can leak sensitive information so this endpoint must be --- --- explicitly enabled in the API section of the config file. --- -GET v1/config/db +GET v1/config/db -> { + "db": { ... }, + "time": "..." +} -- -- All POST requests are in the form: