fix api
This commit is contained in:
parent
0ae4e38dae
commit
90b6c6d1ee
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user