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

View File

@ -113,14 +113,16 @@ GET v1/data -> {
--- fetch configuration options for a given channel id --- --- fetch configuration options for a given channel id ---
GET v1/config/channel/:id -> { GET v1/config/channel/:id -> {
"id": ..., "channel": {
"thermocouple": ..., "id": ...,
"gain": ..., "thermocouple": ...,
"offset": ..., "gain": ...,
"log" ..., "offset": ...,
"filter": { "log" ...,
"sample_size": ..., "filter": {
"type": ..., "sample_size": ...,
"type": ...,
}
}, },
"time": "..." "time": "..."
} }
@ -142,7 +144,10 @@ GET v1/config/device -> {
--- Fetch the DB config options --- --- Fetch the DB config options ---
--- This can leak sensitive information so this endpoint must be --- --- This can leak sensitive information so this endpoint must be ---
--- explicitly enabled in the API section of the config file. --- --- 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: -- All POST requests are in the form: