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: