This commit is contained in:
William Clark 2023-12-13 12:31:07 +00:00
parent 0ae4e38dae
commit 90b6c6d1ee

View File

@ -113,6 +113,7 @@ GET v1/data -> {
--- fetch configuration options for a given channel id ---
GET v1/config/channel/:id -> {
"channel": {
"id": ...,
"thermocouple": ...,
"gain": ...,
@ -121,6 +122,7 @@ GET v1/config/channel/:id -> {
"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: