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