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